Sign inGet Started

bird whatsapp agents test

Usage

Code example
bird whatsapp agents test <number-id> [flags]

Description

Send an agent a test message

Put a message to the agent on this WhatsApp number and read its answer, without anything reaching a contact. It answers from its live configuration, which is the only one there is, so a change you have just saved is what gets tested. Pass the reply's meta_conversation_id back to bird whatsapp agents test to ask a follow-up in context.

Build the request from flags, a JSON WhatsAppAgentTestMessageRequest body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Code example
# print the body shape (no credentials needed)
bird whatsapp agents test --example

# the body it prints:
Code example
{
  "text": "Do you deliver to Rotterdam on a Saturday?"
}

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--textWhat to say to the agent, as a contact would write it. (required; or in --body-file)
--meta-conversation-idContinue an earlier test conversation, using the meta_conversation_id its reply returned. Omit to start a new one, which the agent answers with no memory of anything you asked before.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp agents createOnboard an agent on a WhatsApp number
bird whatsapp agents deleteDelete a WhatsApp number's agent
bird whatsapp agents getGet a WhatsApp number's agent
bird whatsapp agents listList WhatsApp numbers with their agent state

Continue with the documentation, guides and examples for this topic.