-
Notifications
You must be signed in to change notification settings - Fork 1
Feature: whatsapp bridge integration #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
320fe40
feat: WhatsApp integration with MCP resilience and SQLite deduplication
jeancsil 6e51117
Apply code review suggestions for WhatsApp bridge
jeancsil 3831601
fix: bring back tree-sitter
jeancsil c9a1171
fix: apply code review improvements to WhatsApp integration
jeancsil e354f4a
fix: CI Workflow (ci.yml): Changed Python version from 3.13 to 3.12
jeancsil 7671c07
fix: rollback to previous python verision
jeancsil 6cd0fe5
fix: pass test ci var
jeancsil be87ef3
fix: upgrade openai langchain
jeancsil ce0d7e8
fix: make check failures
jeancsil 9c429a0
fix: test_developer_agent and test_core_agents
jeancsil e259c75
fix: mypy errors
jeancsil 677cbd4
fix: improve WhatsApp contact filtering and add comprehensive tests
jeancsil 5bcb139
fix: typing signal
jeancsil beda129
fix: secure WhatsApp contact filtering and add schema migration
jeancsil 3f3e08a
test: add validation for self-message with phone number in RecipientAlt
jeancsil 058c34e
chore: fix Issue: Inconsistent pydantic import styles across the co…
jeancsil 5075587
fix: handle MCP tool exceptions gracefully and improve Docker setup
jeancsil 9d3f04b
fix: Implemented and validated all three review findings, plus regres…
4e4a859
Update .gitignore
jeancsil ee09d91
Update README.md
jeancsil 975ba1f
refactor: rename whatsapp-bridge command to whatsapp
jeancsil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # WhatsApp Agent Configuration | ||
|
|
||
| # Agent model configuration | ||
| model: "claude-sonnet-4-6" # or any supported model | ||
|
|
||
| # MCP Servers (optional - overrides registry defaults) | ||
| # By default, uses: web-fetch, duckduckgo-search | ||
| # Set to empty list [] to disable MCP entirely | ||
| # mcp_servers: | ||
| # - web-fetch | ||
| # - duckduckgo-search | ||
|
|
||
| # Channel configuration | ||
| channel: | ||
| type: "whatsapp" | ||
| storage_path: "~/storage/whatsapp" | ||
|
|
||
| # Privacy and filtering | ||
| privacy: | ||
| allowed_contact: "+34 666 666 666" # Only process messages from this number | ||
| # Option: log_filtered_messages to file for debugging (default: false) | ||
| # log_filtered_messages: true | ||
|
|
||
| # Feature flags | ||
| features: | ||
| text_messages: true # Enable text messages | ||
| media_messages: true # Enable media (images, videos, documents, audio) | ||
| group_messages: false # Enable group messages (disabled by default for privacy) | ||
| presence_updates: true # Enable presence (online/typing status) | ||
| typing_indicators: true # Send typing indicators when processing | ||
|
|
||
| # whatsapp specific | ||
| whatsapp_bridge: | ||
| auto_setup: true # Auto-clone Go bridge on first run | ||
| auto_connect: true # Auto-connect on startup | ||
| bridge_timeout_sec: 180 # Max wait for bridge startup | ||
| poll_interval_sec: 1 # Check for new messages every N seconds | ||
|
|
||
| # Logging | ||
| logging: | ||
| level: "INFO" # DEBUG, INFO, WARNING, ERROR | ||
| file: "logs/agent.log" # Log file location |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
agentic-framework/src/agentic_framework/channels/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| """Communication channels for agents (WhatsApp, Discord, Telegram, etc.).""" | ||
|
|
||
| from agentic_framework.channels.base import ( | ||
| Channel, | ||
| ChannelError, | ||
| ConfigurationError, | ||
| ConnectionError, | ||
| IncomingMessage, | ||
| MessageError, | ||
| OutgoingMessage, | ||
| ) | ||
| from agentic_framework.channels.whatsapp import WhatsAppChannel | ||
| from agentic_framework.channels.whatsapp_config import WhatsAppAgentConfig | ||
|
|
||
| __all__ = [ | ||
| "Channel", | ||
| "IncomingMessage", | ||
| "OutgoingMessage", | ||
| "ChannelError", | ||
| "ConnectionError", | ||
| "MessageError", | ||
| "ConfigurationError", | ||
| "WhatsAppChannel", | ||
| "WhatsAppAgentConfig", | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this supposed to be ./bin/agent.sh
I can't make it to work, it keeps saying it can not find config/whatsapp.yaml
I even tried to provide the absolute path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I run it via docker, how do you run it so I can try the same @rafaelzimmermann ?