Create an automation
Changed onAnswers a comment, a story reply or a story mention automatically: a private DM with up to 3 link buttons, a public reply, or both. Covers comment-to-DM ("comment MENU and we'll DM you the link"), followers-only rewards, story-mention thank-yous and keyword DMs from a QR code. Private DMs work on Instagram and Facebook only; on TikTok, Threads, LinkedIn and YouTube it can only post the public reply. It starts active unless active is false.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Connected account to run it on (sacct_ prefix id) from GET /socials/accounts.
Shown to the business in the Automations page.
comment (default): a comment on a post. story_reply: a reply to a story. story_mention: a story that mentions the account; send keywords: []. Every trigger but comment is Instagram only.
Words that fire it. An empty list fires on every comment.
word matches the keyword as a whole word, contains anywhere ("app" fires on "happy"), exact only when the whole comment is the keyword. Defaults to contains; prefer word.
Comments containing any of these never fire it.
The private DM. Required on Instagram and Facebook; rejected on TikTok, Threads, LinkedIn and YouTube, which have no private reply. {{first_name}}, {{name}} and {{username}} are filled in. 640 characters at most when buttons are set.
Up to 3 link buttons under the DM. Send [] to remove them. Instagram may refuse buttons in a first DM to someone who does not follow the account, which spends that comment's one private reply: for cold audiences send plain text and the link after they answer.
Public reply under the comment, e.g. "Sent you a DM!". Required on TikTok, Threads, LinkedIn and YouTube, where it is the only action.
after_dm posts the public reply only once the DM went out.
Also answer a DM that contains a keyword. Needs at least one keyword. Use it for a printed QR code or sign: "scan, then send MENU".
Wait this long before sending the DM, up to 86400.
Who gets the DM. Instagram only.
The one-tap follow check sent when audience.when_unknown is verify.
How often one person can trigger it. Defaults to once per person, ever.
Only fire on this live post: the post's id from GET /socials/comments. Omit for every post; send null to unbind.
Only fire on this scheduled or published Crevio post (spost_ prefix id); it arms itself when the post goes live. Send null to unbind.
Snippet of the bound post, for display.
false pauses it.
Response
Automation created
Connected account it runs on (sacct_ prefix id).
Shown to the business in the Automations page.
comment (default): a comment on a post. story_reply: a reply to a story. story_mention: a story that mentions the account; send keywords: []. Every trigger but comment is Instagram only.
Words that fire it. An empty list fires on every comment.
word matches the keyword as a whole word, contains anywhere ("app" fires on "happy"), exact only when the whole comment is the keyword. Defaults to contains; prefer word.
Comments containing any of these never fire it.
The private DM. Required on Instagram and Facebook; rejected on TikTok, Threads, LinkedIn and YouTube, which have no private reply. {{first_name}}, {{name}} and {{username}} are filled in. 640 characters at most when buttons are set.
Up to 3 link buttons under the DM. Send [] to remove them. Instagram may refuse buttons in a first DM to someone who does not follow the account, which spends that comment's one private reply: for cold audiences send plain text and the link after they answer.
Public reply under the comment, e.g. "Sent you a DM!". Required on TikTok, Threads, LinkedIn and YouTube, where it is the only action.
after_dm posts the public reply only once the DM went out.
Also answer a DM that contains a keyword. Needs at least one keyword. Use it for a printed QR code or sign: "scan, then send MENU".
Wait this long before sending the DM, up to 86400.
Who gets the DM. Instagram only.
The one-tap follow check sent when audience.when_unknown is verify.
How often one person can trigger it. Defaults to once per person, ever.
Only fire on this live post: the post's id from GET /socials/comments. Omit for every post; send null to unbind.
Only fire on this scheduled or published Crevio post (spost_ prefix id); it arms itself when the post goes live. Send null to unbind.
Snippet of the bound post, for display.
false pauses it.
Counters: triggered, dms_sent, dms_failed, unique_contacts, link_clicks, unique_clicks, audience_skipped, follow_gate_sent, follow_gate_passed.
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
4 more changes in this revision
- warning