Alert Slack when AI labeling or the reply agent fails
If AI labeling or the reply agent fails on the AI provider, for example because the key ran out of credits, Master Inbox posts an alert to Slack so someone fixes it before replies pile up.

Why teams run it
When labels stop, every label-driven workflow stops with them, silently.
Set it up in Master Inbox
- In Master Inbox, open Settings, then Workflows, and click Add a workflow.
- Name it Alert Slack when AI labeling or the reply agent fails.
- Set the trigger to AI Error and choose AI labeling or reply agent errors.
- Add the action Notify in Slack: Post the error and workspace to #ops-alerts.
- Save the workflow and switch it to Active.
Before you start, connect Slack under Settings, Integrations.
Or create it with the API
Everything in the workflow builder is also in the Master Inbox API. This request creates the same workflow. Replace the example ids with your own label, list and campaign ids from GET /workflows/filter-fields.
curl -X POST https://api.masterinbox.com/api/api-webhook/v1/api/workflows/create-workflow \
-H "Authorization: Bearer $MASTER_INBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Alert Slack when AI labeling or the reply agent fails",
"trigger_type": "ai_error",
"trigger_config": {},
"action_configs": [
{
"action_type": "slack_notify",
"payload_variables": [
"name",
"company_name",
"label_names",
"text",
"thread_url"
],
"show_draft": true
}
]
}'Full reference: workflow API guide and API docs.
Or ask Claude, ChatGPT or Grok to build it
Our workflow guide is written for AI agents to read. Give your assistant your API key and this prompt:
Read https://app.masterinbox.com/public-workflow-api.md and use my Master Inbox API key to create this workflow: "Alert Slack when AI labeling or the reply agent fails". First call GET /workflows/filter-fields and look up my label, list and channel ids, then create the workflow and tell me what you set up.Questions
Can I add conditions?
No. The AI Error trigger takes no conditions, and only Slack and email actions.
Which providers does it cover?
Any provider you use for AI labeling or reply agents, such as OpenAI, Anthropic, OpenRouter or your own gateway.
Can I build this workflow through the API?
Yes. Send the create-workflow request shown on this page with your Master Inbox API key. The API checks the payload first and lists every problem by field if anything is off.
Which plan includes this?
This workflow works on the Team plan. Every plan has unlimited users and starts with a free 7-day POC.
Learn more
Related workflows
Alert a reviewer in Slack when an AI draft is held for review
When the reply agent holds a draft instead of sending it, Master Inbox posts the hold reason, the prospect and the thread link to a QA channel in...
AI agentsEmail RevOps when AI labeling or the reply agent hits an AI error
When the AI provider behind labeling or the reply agent returns an error, Master Inbox emails RevOps with the details, so a lapsed key or billing...
AI agentsScore ICP fit with Claude or ChatGPT when a lead replies positively
When a reply is labeled Interested, a webhook sends the thread to n8n, which asks Claude or ChatGPT to score ICP fit and writes the score back to a...

AI agentsApprove and send AI-drafted replies from a Slack card
When a positive reply arrives, Slack gets a card with the prospect's message and the reply agent's draft. Reps press Accept and Send, edit it,...

Run this on your own inboxes
Free 7-day POC. Unlimited users on every plan.
