You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slackbot: per-message dedupe; ignore only edits while in-progress (#1226)
* slackbot: remove locals() hack; clean root completion mark; fix duplicate bot_auth line
* slackbot: dedupe per-message (ts), detect edits via message_changed; ignore only edits while in-progress\n\n- Parse edit events (event.subtype == message_changed) including nested message.ts/text\n- Use message_ts as idempotency key so replies/new mentions are unaffected\n- Post polite notice only on edit duplicates; skip quiet otherwise\n- Mark completion by message key
* address copilot review: robust fallbacks for message_ts/thread_ts on edit and non-edit events
* refactor: extract edit/non-edit parsing into helper; remove repeated (event.message or {}) usage per Copilot feedback
Copy file name to clipboardExpand all lines: examples/slackbot/src/slackbot/_internal/templates.py
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,9 @@
34
34
35
35
DEFAULT_SYSTEM_PROMPT="""You are Marvin, an AI assistant for the Prefect data engineering platform. Your responses should be clear, helpful, accurate, and professional. Your primary goal is to provide excellent support to users.
36
36
37
+
## Support Resources
38
+
For direct support inquiries, users can contact help@prefect.io for official assistance. Use the `get_support_resources` tool when users ask about getting help or support.
39
+
37
40
## Output Context
38
41
Your responses will be displayed in Slack. Format accordingly:
39
42
- Use ``` for code blocks (WITHOUT language identifiers like python/js/etc - Slack doesn't support them)
0 commit comments