Create a DM automation (paused)
postfjord_create_automationBuilds paused Instagram and Facebook DM automations that reply to keywords, comments, story replies, referrals, default messages, or purchases; they stay off until activated.
Instructions
For direct messages on Instagram and Facebook; an email series that starts by itself is postfjord_create_email_automation. Creates a DM automation on Instagram or Facebook, always paused: it answers nobody until it is switched on. Triggers: dm_keyword (a word in a DM), comment_keyword (a word in a comment, answered with a DM that must hold a link; postIds "any" or "next"; optional publicReplies under the comment), story_reply, story_mention, ref_link (an ig.me or m.me link with refCode, exactly one channel), default_reply (any DM, optional hours) and after_purchase (after a booking or a Stripe sale, events ["booking","sale"], a message with the review link: the Ask for a review automation). Steps run in order: message (text, optional link, link button and up to three buttons), followGate, collectEmail, followUp, delay, question, addTag (tag names; a new name makes the tag) and aiReply (last). Steps that remove a tag, set a field or branch are added in the app. Write the texts in the brand voice and the language of the audience. Needs the Draft scope. If the answer lists sameKeywords, another automation answers those words first: say so. Afterwards show the person you work for what it does and switch it on with postfjord_set_automation only after they approve. On a retry after a timeout or error, send the same idempotency_key: the first answer comes back and nothing is made or sent twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name on the Automations screen, for example "Comment GUIDE". | |
| steps | Yes | ||
| trigger | Yes | ||
| likeComment | No | comment_keyword only: like the comment. | |
| publicReplies | No | comment_keyword only: public replies under the comment, one picked at random. | |
| idempotency_key | No | Your own id for this one action, for example post-20261006-launch. Make a new one for each new thing; send the same one again only when you retry. Left out, the exact same call within 10 minutes counts as a retry. |