Create an IFTTT action
Create an IFTTT action when you want Events & Actions to trigger an IFTTT applet whenever a matching PubNub event occurs. You configure the action in the Admin Portal, but IFTTT requires an account and an applet with a Webhooks trigger before you can connect it.
Setting this up takes three parts: prepare an IFTTT applet that listens for a webhook, find that webhook's key, then create and pair the action in the Admin Portal.
If you already have an IFTTT applet with a Webhooks trigger and its key, skip to Configure the IFTTT action.
Create an IFTTT account
Go to ifttt.com, click Sign up, and follow the prompts.
Prepare an applet with a webhook trigger
- Sign in to IFTTT and click Create in the top right.
- In If This, click Add, search for Webhooks, and select it.
- Choose Receive a web request.
- Enter an Event Name. Use this same name later in the Admin Portal's Event Name field.
- Click Create trigger.
- In Then That, click Add and choose the action service you want the applet to trigger, for example Slack.
- Configure that service's action parameters.
- Click Create action, review the applet, and click Finish.
Find your webhook key
- Go to the Webhooks service page and click Documentation.
- Copy the webhook key shown on the page. You need it to configure the action.
Configure the IFTTT action
- In Events & Actions in the Admin Portal, select your app and keyset, then click + Add Action.
- Select Webhook IFTTT as the action type.
- In Event Name, enter the event name you set on the Webhooks trigger.
- In IFTTT Webhook key, enter the key you copied, for example
c-6oz3G_IPCjb6mGqTpz1d. - If your applet's webhook expects specific HTTP headers, add them.
- If you want failed deliveries retried automatically, enable and configure Webhook IFTTT retry. See Available actions for the retry policy and backoff formula.
- Click Add event listener and pair the action with an existing event listener, or create one.
- Click Save changes.
Publish a message that matches the paired listener's filter and confirm your IFTTT applet runs.
Related tasks
- Configure Events & Actions. Create the event listener that triggers this action.
- Available actions. Look up the retry and envelope settings shared by every action type.
- Create a Webhook action. Send matching events directly to your own HTTP endpoint instead of through IFTTT.
- Events & Actions. Understand event listeners, filters, and the concepts behind Events & Actions.