ApichatWebhookAgent
Who emitted the message — shared across the whole envelope (APIchat has no per-message sender). Conditional shape: bot envelopes carry only { id, type }; human-agent envelopes also carry { name, email } from the agent's Landbot account. Switch on type for attribution.
- idType: numberrequired
Bot ID for bot-sent; agent user-account ID for human-sent. Positive integer.
- typeType: stringenumrequiredvalues
- bot
- human
- emailType: string
Human agent's account email. Present only when type == "human".
- nameType: string
Human agent's account display name. Present only when type == "human".