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.

  • Bot ID for bot-sent; agent user-account ID for human-sent. Positive integer.

  • Human agent's account email. Present only when type == "human".

  • Human agent's account display name. Present only when type == "human".