View Categories

11.37 Instagram and Facebook Triggers and Activities

Workflows can answer Instagram and Facebook direct messages and react to comments on your posts automatically. Your Instagram account or Facebook Page must be connected (Section 8).

Triggers #

TriggerStarts when
Message Received via InstagramSomeone sends a direct message to your connected Instagram account
Message Received via FacebookSomeone sends a Messenger message to your connected Facebook Page
Comment Received on InstagramSomeone comments on one of your Instagram posts
Comment Received on FacebookSomeone comments on one of your Facebook Page posts
  • Account: under the trigger, choose one connected account or Page, or leave it on Any connected account.
  • All your posts count, including posts you created directly in Instagram or Facebook rather than through Application.
  • Your own replies never start a workflow. A reply your account posts (by hand or by a workflow) is ignored, so a workflow that replies to comments cannot trigger itself.
  • Each message or comment starts one run. If Meta delivers the same event twice, it still runs only once.
  • Floods are limited. By default one person can start the workflow 3 times in 10 minutes and 20 times a day; see 11.40.

Who is the contact? #

A direct message or comment does not create a contact on its own. The conversation still appears in Social Media → Messages.

  • To turn senders into contacts, start the workflow with Add/Upsert Contact (11.11). It creates the contact from the sender’s name, or finds the one already linked to them, and connects the conversation to that contact.
  • From then on, every new message from that person starts the workflow with the contact already set, so steps such as Add Tag work straight away.
  • Meta does not always give a commenter and a direct-message sender the same identity, so someone who both comments and writes to you can end up as two contacts. Peikly merges them automatically when they share a phone number, email address or WhatsApp id, and otherwise suggests them under Duplicates. You can also merge them yourself (see 5.13 Merge Duplicate Contacts).

Activities #

ActivityWhat it doesWorks with
Send Instagram/Facebook DMOn a message trigger: replies in the same conversation. On a comment trigger: sends the commenter a private replyInstagram/Facebook message and comment triggers
Reply to CommentPosts a public reply under the comment, as your accountComment triggers
Like CommentLikes the comment as your accountComment triggers
Delete CommentDeletes the comment and its replies. This cannot be undoneComment triggers

Texts can include {sender.name} (the person’s name or username) and, on comment triggers, {comment.text}. Messages and replies can be up to 1,000 characters. Messages a workflow sends appear in Social Media → Messages like any other reply.

Meta’s limits:

  • A direct-message reply is only delivered within 24 hours of the person’s last message. Avoid a long Delay before Send Instagram/Facebook DM on a message trigger.
  • A private reply to a commenter is allowed once per comment, within 7 days of the comment. When the person answers it, the conversation continues in Messages and starts Message Received via Instagram/Facebook.

Example: answer every direct message #

Message Received via Instagram → Add/Upsert Contact → Add Tag "instagram-lead" → Send Instagram/Facebook DM "Hi {sender.name}, thanks for your message! We will get back to you shortly."

Example: comment-to-DM #

Comment Received on Instagram → Message Matches (Contains any of price, cost, how much) → TRUE: Like Comment → Reply to Comment "Thanks {sender.name}, we have sent you a DM!" → Send Instagram/Facebook DM "Here are our prices: …"

Example: remove spam #

Comment Received on Facebook → Message Matches (Contains any of your blocked words) → TRUE: Delete Comment.

Scroll to Top