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.

  • id
    Type: number
    required

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

  • type
    Type: stringenum
    required
    values
    • bot
    • human
  • email
    Type: string

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

  • name
    Type: string

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