Skip to content

API Reference parrot.integrations.whatsapp.models

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.whatsapp.models

View source

Data models for WhatsApp bot configuration.

Class WhatsAppAgentConfig

Configuration for a single agent exposed via WhatsApp Business API.

Parameter Type Default Description
name str
chatbot_id str
phone_id Optional[str] None
token Optional[str] None
verify_token Optional[str] None
app_id Optional[str] None
app_secret Optional[str] None
kind str 'whatsapp'
webhook_path Optional[str] None
welcome_message Optional[str] None
system_prompt_override Optional[str] None
commands Dict[str, str] dict()
enable_group_mentions bool True
allowed_numbers Optional[List[str]] None
max_message_length int 4096

Fields:

Field Type Default Description
name str Agent name (used as key in YAML and for env var fallback).
chatbot_id str ID/name of the bot in BotManager (used with get_bot()).
phone_id Optional[str] None WhatsApp Phone Number ID from Meta (not the phone number itself).
token Optional[str] None Permanent access token from Meta System User.
verify_token Optional[str] None Webhook verification token (you define this).
app_id Optional[str] None Meta App ID.
app_secret Optional[str] None Meta App Secret (used for webhook signature validation).
kind str 'whatsapp' Integration type (whatsapp).
webhook_path Optional[str] None Optional custom webhook path override.
welcome_message Optional[str] None Custom welcome message for new conversations.
system_prompt_override Optional[str] None Override the agent's default system prompt.
commands Dict[str, str] field(default_factory=dict) Custom commands map.
enable_group_mentions bool True Respond in groups only when mentioned.
allowed_numbers Optional[List[str]] None Optional phone number allowlist (without + prefix).
max_message_length int 4096 Maximum message length before splitting (default 4096).

Method WhatsAppAgentConfig.from_dict

Create config from dictionary (YAML parsed data).

from_dict(name: str, data: Dict[str, Any]) -> WhatsAppAgentConfig

Parameter Type Default Description
name str
data Dict[str, Any]

Returns: WhatsAppAgentConfig

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally