All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
1.0 KiB
1.0 KiB
Workflow Chat Integration
Creates scoped chat conversations when workflow stages require team collaboration.
Setup
- Install the
workflow-chatandchat-corepackages. - In your workflow stage with
audience: team, setstage_config:
{
"on_advance": {
"package_id": "workflow-chat",
"entry_point": "on_advance"
}
}
- When the workflow advances to that stage, ensure
stage_dataincludes:
{
"title": "Bug Triage Discussion",
"team_members": [
{"id": "user-1", "display_name": "Alice"},
{"id": "user-2", "display_name": "Bob"}
],
"creator_id": "user-1",
"creator_display_name": "Alice"
}
The hook will:
- Create a group conversation titled
"Bug Triage Discussion [abcd1234]"(suffixed with instance ID) - Add all team members as participants
- Send a system message linking to the workflow instance
- Enrich
stage_datawith theconversation_id
Idempotency
If stage_data already contains a conversation_id, the hook returns None (no-op).