Sign inGet Started

bird whatsapp agents faqs create

Usage

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

Description

Add a question and answer to an agent

Give the agent on this WhatsApp number one more question and answer to work from. It reaches WhatsApp before this returns and is used from the next conversation turn.

Build the request from flags, a JSON WhatsAppAgentFAQCreate 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 faqs create --example

# the body it prints:
Code example
{
  "answer": "Orders placed before 16:00 on a working day arrive the next working day in the Netherlands and Belgium.",
  "question": "How long does delivery take?"
}

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
--questionThe question a contact might ask, in their words rather than yours. (required; or in --body-file)
--answerWhat the agent answers. It is rewritten to fit the conversation rather than quoted, so write the fact and not the phrasing. (required; or in --body-file)
--metadata <key=value>Your own labels on this entry.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp agents faqs deleteRemove one of an agent's questions and answers
bird whatsapp agents faqs getGet one of an agent's questions and answers
bird whatsapp agents faqs listList an agent's questions and answers
bird whatsapp agents faqs updateUpdate one of an agent's questions and answers

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