Sign inGet Started

bird whatsapp agents ui-skills create

Usage

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

Description

Add a rich-message skill to an agent

Let the agent on this WhatsApp number answer with a rich message component in a situation you describe. component_type cannot be changed afterwards.

Build the request from flags, a JSON WhatsAppAgentUISkillCreate 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 ui-skills create --example

# the body it prints:
Code example
{
  "component_type": "interactive_reply_buttons",
  "enabled": true,
  "instruction": "Offer the three nearest pickup points as reply buttons once a contact has given their postcode.",
  "title": "nearest-pickup-points"
}

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
--titleA short handle for the skill, in lowercase letters, digits and hyphens, for you to tell skills apart. (required; or in --body-file)
--component-typeWhich rich message component the agent may use. It cannot be changed afterwards; add a new skill to use another. Possible values: cta_url, image, interactive_list, interactive_reply_buttons, location, location_request, carousel_url, carousel_quick_reply. (required; or in --body-file)
--enabledWhether the agent may use this skill from the start. (required; or in --body-file)
--instructionWhen the agent should reach for this component, and what to put in it. (required; or in --body-file)
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp agents ui-skills deleteRemove one of an agent's rich-message skills
bird whatsapp agents ui-skills getGet one of an agent's rich-message skills
bird whatsapp agents ui-skills listList an agent's rich-message skills
bird whatsapp agents ui-skills updateUpdate one of an agent's rich-message skills

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