Route API requests to Teams or Slack
API toolRecipe ToolsBotsArtificial IntelligenceSales Enablement
What it does
When a new API request arrives, this automation routes the message to Teams, Slack, or both based on the destination parameter. It posts the message and returns the status to the caller.
Who it's for
Operations teams who need to send notifications from external systems to Teams or Slack without building separate integrations.
How teams use this
Alert teams from a monitoring tool
Route alerts from a monitoring system to Teams or Slack based on the alert type. The team receives notifications in real time without manual forwarding or duplicate alerts.
Send notifications from a custom app
A custom application calls this API to post messages to Teams and Slack at the same time. Both platforms get the same notification in a single request.
Filter messages by team or project
Add a condition to route messages only to Teams or only to Slack based on a project code or team identifier in the request. Different teams receive alerts on their preferred platform.
Include rich formatting in posts
Set message formatting rules so posts include bold text, links, or attachments before posting to Teams or Slack. Each platform receives the message styled for its native format.
How it works
- Receive the API request. Accept a real-time API call with the message content and destination (Teams, Slack, or both) so the automation knows where to send it.
- Post to Teams if selected. When the destination includes Teams, retrieve the user info from Teams and post the message as a bot, then update the status variable with the result.
- Post to Slack if selected. When the destination includes Slack, post the message to the channel or user in Slack, then update the status variable with the result.
- Return the response. Send back the status of each post attempt so the API caller sees whether the message reached Teams, Slack, or both.