ChannelsSocial Media

Comment workflows

Decide how the AI answers, hides or hands off comments and mentions on your posts and ads.

When someone comments on your Facebook or Instagram post, mentions your page or account, or comments on one of your TikTok ads, comment workflows decide what happens. A workflow can reply publicly, send the commenter a private message, hide, delete or like the comment, or hand it to your team. Each workflow describes the comments it handles and how to respond to them.

Manage workflows in Settings -> Channels -> Comments, or ask Copilot or your AI agent. They run on pages and accounts whose Comments or mention settings are AI replies automatically, and on TikTok ad comments when Respond to comments is on. See Connecting Facebook and Instagram.

Ask Copilot or your AI agent

Create a comment workflow that answers shipping questions in one friendly sentence, with the delivery times from our shipping policy article. Test it on a few sample comments before it goes live.

This page explains how workflows work and how to design a good set. For an overview of every social channel, see Social media overview.

How comment workflows differ from chat workflows

Chat workflows handle back-and-forth conversations. The AI agent asks clarifying questions, runs actions and follows multi-step instructions across many messages.

Comment workflows are one-shot. A comment comes in, the AI picks a workflow, carries out its action and writes a single response. There is no follow-up question and no action call. Instead of step-by-step processes, you write response guidelines: the voice, tone, facts and boundaries for one reply that everyone reading the post can see.

What the AI knows when it responds

A comment workflow writes its response from what is in front of it:

  • The comment text: what the person wrote.
  • The post content: the text of the post, or the media caption on Instagram.
  • The commenter's name: their public display name.
  • The selected workflow's trigger: the description that matched the comment.
  • Your instructions: the workflow's bot instructions, and its private message instructions when it sends one.

Comment workflows do not search your knowledge base, apply your bot rules or look up customer accounts. This keeps public replies predictable: the AI says only what you approved for public replies on that topic. It also means each workflow has to carry the facts and tone it needs. For example:

  • If the reply needs a product link, tell the AI to use the link in the post. If the post has none, include the URL in the instructions ("Direct customers to https://example.com").
  • If the workflow answers pricing or shipping questions, put the prices, rates and delivery times in its instructions.
  • Write tone, length and language rules into every workflow. If every reply should be in Spanish and under two sentences, each workflow says so.

The AI also does not see earlier comments on the post (unless the comment is a direct reply in the same thread), images or videos attached to the comment or post, your other workflows, or your internal terminology. Write instructions as if briefing a capable outsider who has never seen your brand.

That also means the AI can't check facts it can't see. If someone writes "my order is late", the AI can't look the order up, so the workflow should hand off, send a private message asking for details, or point to a support channel. If someone asks "how much is this?", the AI can answer only if the price is in the post or the instructions.

The building blocks

A comment workflow has these fields:

FieldWhat it does
Workflow NameA name for your team.
Live WorkflowTurn off to keep a draft. Drafts can be tested but do not handle real comments.
PriorityLower numbers have higher priority. Workflows are evaluated in priority order.
ActionWhat happens when the workflow matches. See below.
Applies toLimit the workflow to some connected pages. Empty means every page.
When should this workflow be followed?The trigger: a plain-language description of the comments it handles.
Bot InstructionsHow to write the response, for actions that send one.
Private Message InstructionsThe private message, for Respond via comment and private message only.

When should this workflow be followed?

The trigger is a natural-language description of when the workflow applies. When a comment arrives, the AI reads the triggers of every live workflow and picks the one that fits.

Write triggers like you'd explain them to a teammate:

  • "Customer complains about a product or service"
  • "Customer asks about product availability or stock"
  • "Comment contains profanity, hate speech, or spam"
  • "Customer asks a question about the product in the post"

Matching is semantic, not keyword-based. "Where can I buy this?" matches a trigger about product availability even though it doesn't contain the word "availability".

Priority and overlap

Workflows are evaluated in priority order, lowest number first. Put specific workflows ahead of catch-all ones, and write triggers that don't overlap, so each comment clearly fits one workflow.

Action

ActionWhat happens
Respond via commentPosts a public reply to the comment.
Respond in private messageSends the commenter a private message, with no public reply.
Respond via comment and private messagePosts a public reply and sends a private message.
Delete commentDeletes the comment, for spam or abusive content.
Hide commentHides the comment from everyone except its author. Gentler than deleting.
Hide comment and respond in private messageHides the comment, then sends the commenter a private message.
Like commentLikes the comment from your Facebook page or Instagram account, without a reply.
Hand off to agentSends the comment to your team.

Choosing the right action:

  • Public question about your product? Respond via comment: the answer helps other readers too.
  • Customer shares personal details (order ID, email)? Respond in a private message to keep it private.
  • Complaint that needs investigation? Respond via comment and private message: acknowledge publicly, resolve privately.
  • Spam or offensive content? Delete.
  • Borderline or off-topic comment? Hide: it becomes invisible to everyone except the author, which is less confrontational than deleting.
  • Comment shouldn't stay public, but the person still needs an answer? Hide and respond in a private message.
  • Simple praise that doesn't need an answer? Like: the customer gets an acknowledgement without a generic reply under your post.
  • Complex issue that needs a person? Hand off.

Some actions depend on where the comment is. Likes work on comments on your own Facebook and Instagram posts. On mentions and TikTok ad comments, workflows can reply publicly or hand off; a workflow with another action hands the comment to your team instead. Scope workflows so they match the comments they can act on.

Bot instructions

Bot instructions guide the response. For Respond via comment and Respond via comment and private message, they shape the public reply. For Respond in private message and Hide comment and respond in private message, they shape the private message. Write them as guidelines, not step-by-step scripts.

Good instructions look like this:

You are responding on behalf of [Brand], an online store that sells sustainable clothing. Reply in a friendly, helpful tone. Keep the response to 1-2 sentences. If the customer is asking about a product, answer based on the information in the post. If the post doesn't contain enough information to answer, suggest they DM us or visit https://example.com. Never mention competitor products.

Avoid this:

Step 1: Read the comment. Step 2: Determine the intent. Step 3: Generate a response.

The AI already knows how to read and respond. Your job is to define the boundaries and the personality, not the mechanics.

Instructions can also exclude cases. If a matching comment falls under an exclusion in the instructions, the AI declines to reply and hands the comment to your team.

Private message instructions

With Respond via comment and private message, the private message has its own instructions. Private messages can be more detailed, more personal and more action-oriented than the public reply.

Thank the customer for reaching out. Ask for their order number and email address so we can look into it. Reassure them that the issue will be resolved. Keep the tone warm and professional.

Comments no workflow matches

Not every comment needs a response. What happens to a comment that no live workflow matches is a business-wide setting, When no workflow matches, at the top of the Comment Workflows page:

SettingWhat happens to an unmatched comment
Hand off to a human agentThe default. The AI posts nothing and hands the conversation to an agent (reason "No example found").
Ignore (close without a reply)The AI posts nothing and closes the conversation. No handoff and no team notification.

With the default, every comment your workflows don't cover lands in your team's queue. Choose Ignore (close without a reply) when you only want to act on the comments your workflows describe. You can also ask Copilot to change the comment workflow settings.

When unmatched comments are ignored, you don't need workflows for:

  • Comments that are just emojis (unless you want to engage)
  • Conversations between other users on your post
  • Comments that tag a friend without asking a question

If some kinds of comments should still reach a person, add a workflow with the Hand off to agent action for them. If you find yourself writing a workflow with instructions like "don't respond to this", set unmatched comments to Ignore instead.

This setting applies only to pages whose comment handling is AI replies automatically in the Social Media settings. Pages set to Leave for a human agent hand every comment to your team, and pages set to Ignore never reach the AI. On Facebook, a reply posted in the thread under a comment always goes to a human agent, even when the top comment was ignored.

Tag-only, name-only and emoji-only comments can receive a reply when a workflow covers them. When the comment has no identifiable language, the reply uses the language of your instructions and examples.

Designing your workflow set

Most businesses need 3 to 7 comment workflows. Here's a practical approach.

Start with your most common comment types

Look at your recent comments and group them by intent:

  1. Product questions: "What size should I get?", "Is this available in blue?"
  2. Purchase intent: "Where can I buy this?", "How much is it?"
  3. Complaints: "My order arrived damaged", "I've been waiting 2 weeks"
  4. Praise: "Love this product!", "Best purchase I've made"
  5. Spam or inappropriate content: irrelevant links, offensive content

Each group typically maps to one workflow.

Order from specific to general

Give the most specific workflows the highest priority (the lowest numbers):

PriorityWorkflowTriggerAction
1Delete spamSpam, scams, or inappropriate contentDelete comment
2Handle complaintsCustomer expresses dissatisfaction or reports a problemRespond via comment and private message
3Answer product questionsCustomer asks about a product's features, sizing, availability, or priceRespond via comment
4Purchase intentCustomer asks where or how to buyRespond via comment
5Engage with praiseCustomer expresses positive sentimentLike comment

Limiting a workflow to specific pages

By default every workflow applies to all of your connected pages. If you run several pages from one business, such as a main brand page and a separate outlet page, use Applies to to point a workflow at some of them. The workflow then only considers comments on those Facebook pages and their linked Instagram accounts.

This is useful when pages differ in language, offers or tone: keep shared workflows on "All connected pages" and add page-specific ones alongside them. Page-specific workflows are added to the set the AI chooses from for that page. TikTok ad comments only see workflows that apply to all pages.

Response timing

Octocom waits before responding to a Facebook or Instagram comment, so the reply doesn't feel automated and a person who writes several comments in a row is answered with the full picture. The wait is the Response delay of the connected page or Instagram account (10 minutes unless you change it). Tests respond immediately.

Channel coverage

One set of workflows covers every connected social channel:

  • Facebook page comments: comments on your page's posts.
  • Facebook mentions: someone mentions your page in their post or comment.
  • Instagram comments: comments on your posts.
  • Instagram mentions: someone mentions your account in their post or comment.
  • TikTok ad comments: comments on your TikTok ads (see below).

The AI adapts its response format to each platform automatically.

TikTok ad comments

TikTok comments come in through the TikTok Ads integration. To connect it:

  1. Open Settings -> Workspace -> Integrations, find TikTok Ads under Marketing and analytics and click Continue to TikTok.
  2. On TikTok's consent screen, approve access with an account that can authorize apps for your TikTok Ads account.
  3. Back in the TikTok Ads integration in Octocom, turn on Enable comment polling to bring comments in.
  4. Turn on Respond to comments to let your workflows answer them. With it off, new comments go straight to your team.

Both switches start off. Octocom checks for new comments every 10 minutes and brings in top-level comments on your ads. Comments on organic TikTok posts and TikTok direct messages are outside this integration.

On TikTok a workflow can reply publicly or hand off. Hide, delete, private message and like workflows hand the comment to your team instead. Workflows limited to specific pages don't apply to TikTok comments.

TikTok does not allow replies on ads posted as a Business Center authorized account. When that happens, the comment is handed to your team with a note saying why, and the reply is not shown as sent.

Testing your workflows

You don't need to wait for real comments. Click Test Comment on the Comment Workflows page to simulate one:

  1. Optionally pick the page the comment arrives on, so workflows limited to other pages are left out. Leave it on "Any page" to consider every workflow.
  2. Enter the post content: the text or description of the post the comment is on.
  3. Enter the comment you want to simulate.
  4. Click Run Test.

The test shows which workflow matched (or that none did), what action would be taken, and the exact response the AI would write. Nothing is posted. Tests include draft workflows, so you can try a workflow before turning it live.

Use it to check:

  • Do your triggers match the right comments? Try edge cases.
  • Are the tone and length what you want?
  • Does the AI use the facts in the instructions correctly?
  • Do specific and general workflows fire in the right priority order?

For developers and AI agents: test_comment_workflow runs the same test through MCP, and list_comment_workflows, create_comment_workflow, update_comment_workflow, get_comment_workflow_settings and update_comment_workflow_settings manage workflows and the no-match setting. See Octocom MCP.

Tips for writing great instructions

Explain who you are. Start with a brief description: "You are responding on behalf of [Brand], an online store that sells sustainable clothing." This context shapes every response.

Set the tone in every workflow. "Friendly and professional" is vague. "Reply like a knowledgeable friend who works at the brand: casual but accurate, never salesy" is better. Copy it into each workflow.

Set length expectations in every workflow. "Keep responses to 1-2 sentences" prevents paragraph-length comments.

Include the facts the reply needs. If a workflow handles shipping questions, put your shipping rates and delivery times in its instructions. If it handles pricing, include prices or tell the AI to use the post.

Be specific about post scope. If a workflow should only apply to certain posts (product launches, promotions, reels), describe them in the trigger. "Customer asks about a product featured in a product showcase post" is better than "Customer asks about a product."

Don't use internal terminology. If your team calls something "the spring drop", explain what it is or use plain, descriptive language.

Define what not to do. "Never promise a refund in a public comment", "Don't share discount codes publicly", "Never argue with a customer". These boundaries prevent costly mistakes.

Use the post as context. "If the comment is about the product in the post, answer using the post content."

Hand off edge cases. It's better to route a tricky comment to a person than to post an incorrect public response.

Example: a complete workflow set for an online store

1. Delete spam and inappropriate content

  • Trigger: Comment contains spam, scam links, hate speech, or completely irrelevant promotional content
  • Action: Delete comment

2. Handle order complaints

  • Trigger: Customer complains about an order: late delivery, wrong item, damaged product, or similar issues
  • Action: Respond via comment and private message
  • Bot instructions: You are responding on behalf of [Brand]. Apologize briefly and let them know you're sending a private message to help resolve it. Keep it to one sentence. Don't ask for order details in the public reply. Reply in a warm, empathetic tone.
  • Private message instructions: You are responding on behalf of [Brand]. Thank them for reaching out. Ask for their order number and email address. Reassure them that someone from the team will look into it. If the issue sounds urgent, let them know the team will prioritize it. Keep the tone warm and professional.

3. Answer product questions

  • Trigger: Customer asks about product details: sizing, materials, availability, compatibility, care instructions, or any specific product feature
  • Action: Respond via comment
  • Bot instructions: You are responding on behalf of [Brand], an online store that sells [product category]. Answer the question based on the information in the post. If the post doesn't contain enough information to answer, suggest they visit our product page at https://example.com or DM us for more details. Do not guess or make up product details. Keep responses to 1-2 sentences. Reply in a friendly, helpful tone.

4. Redirect purchase intent

  • Trigger: Customer asks where to buy, how to order, or requests a link to purchase
  • Action: Respond via comment
  • Bot instructions: You are responding on behalf of [Brand]. Let them know the product is available on our website at https://example.com. If there's a link in the post, reference it. Keep it short and friendly. Reply in a warm, conversational tone.

5. Engage with positive feedback

  • Trigger: Customer shares a positive experience, compliment, or excitement about the product or brand
  • Action: Respond via comment
  • Bot instructions: You are responding on behalf of [Brand]. Thank them genuinely. Keep it short and warm: one sentence is enough. Vary the responses so they don't all sound the same. Don't be overly enthusiastic or use excessive exclamation marks. Reply in a friendly, conversational tone.

6. Hand off complex issues

  • Trigger: Customer raises a complex issue that requires account access, technical support, or detailed investigation
  • Action: Hand off to agent

Put everything the reply needs in the instructions

The instruction field isn't a short prompt box. It is where you give the AI all the context it needs, and it is the reply's only source of facts besides the post. Include full details directly: shipping rates, delivery times, return policies, size charts, pricing, FAQs, or anything else a customer might ask about in a comment.

Here's a shipping workflow with real detail:

Shipping questions

  • Trigger: Customer asks about shipping: delivery times, shipping costs, available countries, tracking, or shipping policies
  • Action: Respond via comment
  • Bot instructions:
You are responding on behalf of NordicWear, a Scandinavian outdoor clothing brand.

Answer the customer's shipping question using the information below. Keep your reply to 1-2 sentences. Be friendly and helpful. If the question is about something not covered here, suggest they DM us or visit https://nordicwear.com/shipping for full details.

SHIPPING INFORMATION:

We ship to the following countries:
- Sweden: Free shipping on all orders. Delivery in 1-2 business days.
- Norway: Free shipping on orders over 500 NOK. Otherwise 79 NOK. Delivery in 2-3 business days.
- Denmark: Free shipping on orders over 400 DKK. Otherwise 59 DKK. Delivery in 2-3 business days.
- Finland: Free shipping on orders over 40 EUR. Otherwise 6.90 EUR. Delivery in 2-4 business days.
- Germany: Free shipping on orders over 50 EUR. Otherwise 7.90 EUR. Delivery in 3-5 business days.
- Rest of EU: Flat rate 9.90 EUR. Delivery in 5-8 business days.
- UK: Flat rate 12.90 GBP. Delivery in 5-10 business days. Customs fees may apply.
- US & Canada: Flat rate 19.90 USD/CAD. Delivery in 7-14 business days. Customs fees may apply.

We do not currently ship to countries outside the list above.

All orders include tracking. Tracking links are sent via email once the order ships.

Orders placed before 2 PM CET on weekdays ship the same day. Weekend orders ship the following Monday.

Returns are free within the EU. For non-EU returns, the customer covers return shipping. Items must be returned within 30 days, unworn and with tags attached.

With this level of detail, the workflow answers most shipping questions accurately without a person stepping in. The same approach works for any topic.

On this page