> ## Documentation Index
> Fetch the complete documentation index at: https://plain-docs-orca-916-agent-docs-restructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Discussion message created

> Fired when a message is posted in a discussion.

This event is fired when a message is posted in a [discussion](/graphql/discussions), including the messages your own agent posts.

`message.type` is the field to read, and its sense is the opposite of what you might expect on a Sidekick conversation: a person's turn is `OUTBOUND` and your agent's own replies return as `INBOUND`. An agent that answers every message it receives, without checking the type, answers itself forever. The [custom agent guide](/agents/internal-agent) has the full filter.

`message.workspaceFiles` holds the files attached to the message, and is present from webhook version `2026-09-02`.

## Schema

[**View JSON Schema →**](https://core-api.uk.plain.com/webhooks/schema/latest.json)

Example:

<Snippet file="webhooks/discussion-message-created.mdx" />

<Snippet file="webhooks/sdk-usage.mdx" />
