Automate tasks with Instagram Messaging
Send and receive direct messages on Instagram.
https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login
Triggers
The trigger is the event that starts the automation.
-
Instantly when receiving a text message
It is triggered every time a user sends a text message to your Instagram account.
-
Instantly when receiving an image
It is triggered every time a user sends an image to your Instagram account.
-
Instantly when a user presses a button (quick reply)
It is triggered every time a user presses a quick reply button sent through this Instagram account. You can optionally filter by the button payload so the trigger only fires for one specific button.
-
Instantly when receiving a video
It is triggered every time a user sends a video to your Instagram account.
-
Instantly when receiving an audio
It is triggered every time a user sends an audio message to your Instagram account.
-
Instantly when receiving a file
It is triggered every time a user sends a file to your Instagram account.
-
Instantly when a user mentions your account in a story
It is triggered every time a user mentions your Instagram account in a story.
-
Instantly when a user reacts to a message
It is triggered every time a user reacts to a message in your Instagram account (adds or removes an emoji reaction).
Actions
The action is what happens automatically, without you having to do anything else.
-
Get media URL
Returns the URL corresponding to a received media attachment. Currently a passthrough: it echoes back the URL received in the webhook. TODO: integrate with S3 to download from Meta and rehost so the URL stays valid beyond Meta's temporary access window.
-
Send a text message
Send a direct text message to a user that has previously contacted your Instagram account. Note: Instagram only allows replies within 24h after the user's last message.
-
Send an image
Send an image as a direct message to a user that has previously contacted your Instagram account. The image must be reachable via a public http(s) URL. Note: Instagram only allows replies within 24h after the user's last message.
-
Send a message with buttons (quick replies)
Send a direct message including up to 13 quick reply buttons. When the user presses one, the 'Receive button press' trigger will fire. Note: Instagram only allows messages within 24h after the user's last message.
-
Ask user
Send a direct message to a user and wait for their response before continuing. The reply must arrive within 24h after the user's last message (Instagram policy).
-
Ask user with buttons (quick replies)
Send a direct message with up to 13 quick reply buttons and wait for the user to press one before continuing. The press must arrive within 24h after the user's last message (Instagram policy).