Skip to main content
This event is fired when a discussion is started, on a thread or on its own. Read discussion.type before acting. The type AGENT_SESSION lets you know when a discussion is with an agent (the Sidekick Agent or your own connected agent); SLACK and EMAIL discussions are conversations with people. Read discussion.agent to see which machine user the conversation was opened against. It is null on a discussion with the Sidekick Agent.

Schema

View JSON Schema → Example:

Using the Webhooks SDK

You can use the @team-plain/webhooks package to parse and verify this event with full type safety: