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. AGENT_SESSION is a Sidekick conversation, which is the only type a custom agent answers; 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 Plain’s own Sidekick runs.

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: