Skip to content

docs: improve WhatsApp interface documentation#572

Open
uzaxirr wants to merge 1 commit intomainfrom
docs/whatsapp-interface-documentation
Open

docs: improve WhatsApp interface documentation#572
uzaxirr wants to merge 1 commit intomainfrom
docs/whatsapp-interface-documentation

Conversation

@uzaxirr
Copy link
Copy Markdown
Contributor

@uzaxirr uzaxirr commented Mar 17, 2026

Description

Bring the WhatsApp interface documentation up to parity with Slack and Telegram docs. The existing pages had stale code snippets, missing parameters, and lacked several reference sections.

Interface Reference (agent-os/interfaces/whatsapp/introduction.mdx)

Rewritten to match the Slack/Telegram structure:

  • Added missing initialization parameters: workflow, prefix, tags
  • Fixed get_router method signature (removed non-existent use_async param)
  • Updated opening line to include Workflows (not just Agents and Teams)
  • Added Session Management section (scope format wa:{phone_number})
  • Added Media Support section (inbound/outbound types)
  • Added Reasoning Support section (italicized reasoning messages)
  • Added Troubleshooting table with common issues and fixes

Usage Examples (6 files updated)

All examples updated to match the actual cookbook source code:

File Changes
basic.mdx Fixed model class (OpenAIChat not OpenAIResponses), removed stale WHATSAPP_WEBHOOK_URL env var
image-generation-tools.mdx Fixed model class, removed debug_mode from snippet
reasoning-agent.mdx Fixed import (ReasoningTools not ThinkingTools), matched actual tool params
image-generation-model.mdx Updated Gemini model ID to models/gemini-2.5-flash-image
agent-with-media.mdx Updated Gemini model ID to gemini-3-flash-preview
agent-with-user-memory.mdx Fixed import (WebSearchTools not HackerNewsTools), matched actual cookbook code

Type of Change

  • Content improvement
  • Bug fix (errors, broken links, outdated info)

Checklist

  • Content is accurate and up-to-date
  • All links tested and working
  • Code examples verified (if applicable)
  • Spelling and grammar checked
  • Screenshots updated (if applicable)

Rewrite the interface reference page to match the structure used by
Slack and Telegram docs. Add missing initialization parameters
(workflow, prefix, tags), fix the get_router method signature, and add
Session Management, Media Support, Reasoning Support, and
Troubleshooting sections.

Update all six usage examples to match the actual cookbook code:
- basic.py: fix model class (OpenAIChat not OpenAIResponses), remove
  stale WHATSAPP_WEBHOOK_URL env var
- image_generation_tools.py: fix model class, remove debug_mode
- reasoning_agent.py: fix import (ReasoningTools not ThinkingTools),
  match actual tool params from cookbook
- image_generation_model.py: update Gemini model ID to match cookbook
- agent_with_media.py: update Gemini model ID to match cookbook
- agent_with_user_memory.py: fix import (WebSearchTools not
  HackerNewsTools), match actual cookbook code
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the WhatsApp interface documentation and examples to align with the structure and (intended) behavior documented for other AgentOS interfaces, focusing on correcting stale snippets and expanding the reference coverage.

Changes:

  • Reworks the WhatsApp interface reference page with updated initialization params, endpoint details, and new sections (sessions/media/reasoning/troubleshooting).
  • Updates WhatsApp usage examples to reflect current imports/models/tooling and removes stale environment variables.
  • Refreshes example descriptions and key-feature lists to match updated snippets.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
agent-os/interfaces/whatsapp/introduction.mdx Expanded/modernized WhatsApp interface reference (setup, params, endpoints, sessions/media/reasoning, troubleshooting).
agent-os/usage/interfaces/whatsapp/basic.mdx Updates basic WhatsApp agent example to OpenAIChat and removes stale env var usage.
agent-os/usage/interfaces/whatsapp/image-generation-tools.mdx Updates tool-based image generation example to OpenAIChat, removes stale params/env var references, and refreshes feature bullets.
agent-os/usage/interfaces/whatsapp/image-generation-model.mdx Updates model-based image generation example (Gemini model id) and removes stale params/env var references.
agent-os/usage/interfaces/whatsapp/reasoning-agent.mdx Updates reasoning agent example imports/toolkit usage and simplifies YFinanceTools usage; refreshes description/features.
agent-os/usage/interfaces/whatsapp/agent-with-media.mdx Updates media-capable agent example (Gemini model id), imports, and feature bullets.
agent-os/usage/interfaces/whatsapp/agent-with-user-memory.mdx Updates memory example imports/tooling (WebSearchTools), fixes snippet text, and refreshes env vars/feature bullets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- Health/status of the interface.
- Health/status check for the interface.
- Returns `{"status": "available"}`.
ReasoningTools(add_instructions=True),
YFinanceTools(),
],
instructions="Use tables to display data. When you use thinking tools, keep the thinking brief.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants