Troubleshooting

The bot never answers

  1. curl https://<worker>/health — if that fails the Worker is not deployed.
  2. Check platforms in the health response. An empty list means no adapter is configured; for Slack that means SLACK_BOT_TOKEN is unset.
  3. wrangler tail and mention the bot. No log line at all means Slack is not reaching the Worker — re-check the Request URL.
  4. A line saying the signature verification failed means the signing secret does not match the app. Copy it again from Basic Information.

Try it: The bot never answers — what do I check?

Slack shows a warning triangle on the message

Slack retries any webhook it does not see acknowledged within three seconds and marks the message once it gives up. The runtime acknowledges before running handlers, so this normally means the request never arrived or was rejected — look for the 400 in wrangler tail.

The bot answers twice

Event de-duplication is per-isolate unless a KV namespace is bound. Bind BOT_STORE — see Deploying a bot.

The bot answers itself in a loop

Messages from any bot, including this one, are dropped before they become events. If a loop still appears, two bots are relaying each other through a non-message path — check onTrigger and onCommand handlers.

The chat panel will not start

The panel on the website — and the full-page chat at /chat — says why, and each wording means something different.

  • "…whoever looks after it still has to switch its web chat on." The bot is deployed and running; the chat half of it is not configured. It needs WEB_CHAT_SECRET — 32 or more random bytes — set on the Worker, and nothing else. A bot deployed by the installer gets one automatically, so this is a hand deployment, or one whose secret was removed. Set it with wrangler secret put WEB_CHAT_SECRET and reload the page: no redeploy of the code is needed, and curl https://<worker>/health lists web among the platforms once it is there.
  • "…not accepting chats from this page." The panel is embedded on a site that is not on the bot's allowlist. Add that site's address to WEB_CHAT_ALLOWED_ORIGINS. The bot's own knowledge-base website never needs this — it is always allowed.
  • "The bot is not answering right now." Genuinely temporary. If it persists, wrangler tail while reloading the page.

UnsupportedCapabilityError

The bot used a feature the platform did not declare. Either guard it with conversation.can(...), or pick an alternative — for Slack the usual case is typing, which Slack does not offer to apps. See Capabilities.

The bot says it has no AI provider configured

That notice is the SDK's, and it is accurate: AI_SERVICE is unset or names a provider that is not recognised, so there is no model to answer with. Set AI_SERVICE and AI_MODEL on the bot's own Settings screen — where the provider is picked from a menu, so a misspelling cannot be the cause — or in the Worker's configuration and deploy again. See AI and tools. The notice is sent to whoever addressed the bot, privately where the platform allows it, so most of the channel never sees it. AI_SETUP_INSTRUCTIONS replaces its wording with your own — an internal runbook, a person to ask — and is edited on that same Settings screen.

The bot says there is nobody on hand to take over

It means exactly what it says: nothing it tried actually delivered, so it will not promise you a person. It tries the help channel first, then the people it was told to notify, then the room the conversation is in — and in a one-to-one chat there is no room to ask, which is why the message appears there most often.

  • Is there a help channel for this chat system? The value names a channel in one of them (C… in Slack, spaces/… in Google Chat, 19:… in Teams), so it is set on that connection's own screen under Integrations rather than once for the whole bot. A bot connected to two workspaces needs one on each.
  • Is the bot a member of it? A channel it was never invited to refuses the post, and the bot moves on to the next place rather than failing.
  • Are the addresses in People to notify people this chat system knows? See the next section.
  • Say something useful when there genuinely is nobody. HELP_MESSAGE is that sentence — a support address, an issue tracker, opening hours.

The people I listed were not @-mentioned or messaged

People to notify holds email addresses, and the bot has to find the person holding each one in the chat system it is answering in.

  • Slack can be asked, using the users:read.email scope the app manifest already includes. An app installed before that scope was granted has to be reinstalled — a new scope does not apply to an already-issued token.
  • Google Chat and Microsoft Teams cannot: neither gives an app a directory to search. There, put the platform's own user id in the list instead of an address, and the bot uses it as it stands.
  • An address nobody in that workspace holds is skipped, with a line in wrangler tail. That is the ordinary state of a list maintained outside the chat system, so it never fails the request — but it does mean a list of addresses that are all unknown reaches nobody.
  • Messaging somebody directly needs more than finding them: Slack needs the im:write scope, Google Chat can only reach somebody who has messaged the app before, and Teams needs TEAMS_TENANT_ID.

Somebody pressed "I have got this" and the person waiting heard nothing

The bot only tells the person waiting that somebody is coming once the message saying so has actually been delivered. If it could not be, the colleague who pressed the button is told in as many words that the asker has not been told — so the first thing to check is what that colleague saw.

The usual causes are the ordinary ones for a post the bot cannot make: it was removed from the channel the question was asked in, or the question came from the chat panel on the website and that visitor's session has since ended. wrangler tail carries the platform's own error beside Could not reach the conversation a hand-off came from.

Two more things worth knowing:

  • A second person pressing the button is told who has it, and the asker is not told twice. That is deliberate: two people promising to help one person is worse than one.
  • A request nobody claims expires after a day. Pressing the button after that says the request has expired rather than doing nothing.

A colleague's reply is not reaching the person who asked

Replies are relayed from the request's own thread, and only for the person who pressed the button.

  • Write in the thread hanging off the request itself, and address the bot — a message elsewhere in the help channel is an ordinary question for the bot.
  • Only the claimant relays. Anybody else writing there is told who has it.
  • A chat system with no threads cannot route a reply at all, and the confirmation the claimant got said so. Talk to the person directly there.
  • A relay that did not land is reported to the claimant, never assumed.

Answers are vague or invented

  • Is AI configured at all? With AI_SERVICE unset the bot falls back to keyword search and returns document links rather than prose.
  • Does the knowledge base actually contain the answer? Ask the bot to list_documents by asking "what do you know about?".
  • Tighten the responder instructions: "Answer only from the knowledge base. If it does not cover the question, say so and offer to fetch a person."

chat.postMessage failed: channel_not_found

The bot is not a member of the channel. Invite it: /invite @yourbot.

chat.postMessage failed: missing_scope

The token lacks a scope. Add it under OAuth & Permissions, then reinstall the app — new scopes do not apply to an already-issued token.

Related: Connecting Slack, Deploying a bot, Capabilities.

← Deploying a bot