Repository navigation
Highlights
Harness Tag: a harness answers as its own bot in Telegram, Slack and WhatsApp (#793). Each setup has a new Publish tab. It starts with Your app (API), then one row per chat app.
- Connect from the setup page.
- Telegram: paste a @Botfather token.
- Slack: the console fills Slack's app manifest for you, then you paste the bot token and signing secret.
- WhatsApp: your WhatsApp Business number on the Cloud API.
- You decide who it answers.
- Direct messages need a pairing code you approve, or an allow list.
- Groups and channels need your approval.
- In a group, it answers when someone mentions it.
- One conversation per chat.
- A chat the bot is in is one ongoing session, and each turn carries only the messages since its last one.
- A Slack thread branches the channel's conversation from where the thread starts, and stays in the thread.
- You can see it work. It acknowledges at once and keeps one live progress message with a Stop button. When the answer is posted, the progress message is removed.
- Disconnect erases everything that connection stored: its records and its credentials.
The one setting
Chat apps have to reach your instance. Set HARNESS_PUBLIC_BASE_URL to its public https address, for example https://your-host/api/harness behind the console. Webhooks arrive at {HARNESS_PUBLIC_BASE_URL}/v1/tag/hooks/.... Without it, connecting refuses and names the variable. Setup for each app is in docs/harness-tag.md.
Security
- The webhook paths are the only ones open without a credential. Each checks its platform's signature over the raw request before anything is read:
- Telegram's secret token;
- Slack's signed request, refused when more than 5 minutes old;
- WhatsApp's
X-Hub-Signature-256and its verify token.
- Nothing to probe. An unknown connection and a bad signature get the same answer.
- Credentials are stored encrypted and are never logged or returned.
- Outbound calls go only to the three platforms' API hosts.
- Limits. Webhooks are rate-limited per connection, and request bodies are capped.
Tested
- Unit tests: 488 new tests.
- End to end, on a public test instance with real accounts made for the test and deleted afterwards:
- Telegram: a pairing code, an answer with a live progress message, a follow-up that remembered the first question, and Stop.
- Slack: an app made from the console's manifest; a channel approved; a mention answered in its thread; a reply in that thread branched from the channel's conversation and answered there.
- WhatsApp: Meta's webhook check, a pairing code, then an answer.
What's Changed
- Harness Tag: a harness answers in Telegram, Slack and WhatsApp (Publish tab) by @github-actions[bot] in #793
Full Changelog: v0.41.33...v0.42.0