Zapier - Slack notifications
This guide will help you integrate the super.AI platform with Zapier to receive Slack notifications when a super.AI job is completed. We'll use a webhook POST event to facilitate the integration.
Integrating super.AI with Zapier for Slack Notifications
Prerequisites
- A super.AI account with API access.
- A Slack account with appropriate channel permissions.
- A Zapier account.
Steps to Integrate super.AI with Zapier
Step 1: Create a New Zap in Zapier
- Log in to your Zapier account.
- Create a new Zap based on the following template: Send Slack channel messages from a webhook.
- Set up the trigger:
- App Event: Webhooks by Zapier.
- Trigger Event: Catch Hook.
Step 2: Create a Webhook URL in Zapier
- After selecting the Catch Hook trigger, Zapier will provide you with a unique webhook URL. This URL will be used to receive events from super.AI.
- Copy the webhook URL for later use.
![Copy the webhook URL from Zapiers interface.](https://files.readme.io/1e4b0cb-Screenshot_2024-07-11_at_13.19.36.png)
Copy the webhook URL from Zapiers interface.
Step 3: Create a Job in super.AI with a Webhook
-
Open your terminal or command prompt.
-
Run the following
curl
command, replacing{PROJECT_ID}
,{API-KEY}
, and{ZAPIER_WEBHOOK_URL}
with your actual project ID, API key, and the webhook URL provided by Zapier:curl -X POST \ "https://api.super.ai/v1/apps/{PROJECT_ID}/jobs" \ -H "API-KEY: {API-KEY}" \ -H "Content-Type: application/json" \ -d "{\"inputs\": [{\"documentUrl\":\"https://cdn.super.ai/invoice-example.pdf\"}], \"callbackUrl\": \"{ZAPIER_WEBHOOK_URL}\" }"
{PROJECT_ID}
: Your super.AI project ID as shown in the browser URL.{API-KEY}
: Your super.AI API key.{ZAPIER_WEBHOOK_URL}
: The webhook URL obtained from Zapier.
Using
curl
to create the job is just an example and the callbackUrl can be set using any other HTTP client.
Step 4: Activate the Zap
- Turn on your Zap in Zapier to make it live.
- Make sure all the other required fields in Zapier (e.g. the Slack channel) are set up.
- Once the job is submitted in super.AI and the Zap is active, the message should be sent to your Slack channel upon job completion.
Troubleshooting
- Ensure that the API key and project ID are correct and have the necessary permissions.
- Verify the webhook URL is correctly copied and used in the
curl
command. - Check Zapier logs to ensure the webhook is receiving the events and the Zap is configured correctly to send messages to Slack.
Updated about 2 months ago
What's next