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.

AI agentsSlackOpenAIRevOpsTeam plan
When
AI ErrorAI labeling or reply agent errors
Then
Notify in SlackPost the error and workspace to #ops-alerts

Why teams run it

When labels stop, every label-driven workflow stops with them, silently.

Set it up in Master Inbox

  1. In Master Inbox, open Settings, then Workflows, and click Add a workflow.
  2. Name it Alert Slack when AI labeling or the reply agent fails.
  3. Set the trigger to AI Error and choose AI labeling or reply agent errors.
  4. Add the action Notify in Slack: Post the error and workspace to #ops-alerts.
  5. 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

Browse all 177 workflows

Run this on your own inboxes

Free 7-day POC. Unlimited users on every plan.

Start your free 7-day POC