Skip links
🔧
Need help with installation?
Send an email to [email protected] to get a quote.

Social Media Suite — DM & Comment Automation Setup

Table of Contents

Social Media Suite — DM Comment Automation is a child extension for Social Media Suite that automatically responds to commenters on your social media posts via direct message (DM) and optional public replies. It enables businesses to engage audiences at scale by triggering personalized message flows the moment someone comments on a post or reel.

Prerequisite: Social Media Suite must be installed, active, and your social media accounts must already be connected before using this extension. If you haven’t set up your platform connections yet, complete that first.

Requirements

  • Social Media Suite installed and active on your workspace
  • At least one social media account connected with the required permissions (see platform-specific notes below)
  • Cron job configured — without this, comments are received but no DMs or replies are ever sent
  • Publicly accessible domain with HTTPS (required for webhooks)
    Platform webhook registered and verified (covered in the Social Media Suite setup guide)

Installation & Activation

Install Social Media Suite — DM Comment Automation from the Marketplace.
Once installed, enable the feature per pricing plan: Finance → Pricing Plans → enable Comment & DM Automation.

Navigate to Social Media Suite → Automation from the sidebar. This page lists all existing automations with their name, status (Live or Draft), creation date, connected account, and action controls.

Click + Create New Automation to begin.

Additional Platform Requirements for Automation

The Social Media Suite setup guide covers connecting your accounts. The automation feature requires a few additional permissions and webhook subscriptions beyond what’s needed for basic posting. Check each platform below.

Facebook

Your Facebook app needs these additional permissions enabled (on top of what’s required for posting):

PermissionWhy it's needed
pages_messagingSend DMs via Messenger
pages_manage_metadataSubscribe to webhook events

Your webhook must be subscribed to the feed field (Page object). The system automatically filters incoming events and processes only comments, ignoring likes, new posts, etc.

⚠️ If you previously connected your Facebook account without granting pages_manage_metadata, disconnect and reconnect to apply the new permission.
Webhook URL: /social-media/webhook/facebook

Instagram

Instagram automation requires a Professional account (Business or Creator) linked to a Facebook Business Page. Personal profiles are not supported.

Your app needs these additional permissions:

PermissionWhy it's needed
instagram_manage_commentsRead and reply to comments
instagram_manage_messagesSend DMs (Private Reply)

Your webhook must be subscribed to the comments field (Instagram object). No other field subscriptions are needed.
Webhook URL: /social-media/webhook/instagram

How Instagram DMs work (Private Reply):

Instagram automation does not send traditional DMs — it sends a Private Reply via the Instagram Messenger API. Here’s what to expect:

  • The reply arrives as a DM to the commenter.
  • A “Sent a private reply” note appears under the original comment (visible to others).
  • First-time recipients see it as a Message Request and must accept it before they can read it.
  • Private Replies can only be sent within 7 days of the original comment.
    API rate limits apply — errors will occur if exceeded.

X (Twitter)

X automation requires a Pro Plan on X Developer Portal (the Free plan does not include Account Activity API access).

In addition to the credentials entered during Social Media Suite setup, you must:

  • Register the webhook URL in X Developer Portal → Products → Premium → Dev Environments.
  • Add a subscription to specify which X account’s events to listen to (via the Account Activity API)

Webhook URL: /social-media/automation/webhook/x

X treats replies as tweet replies (tweet_create_events with a non-null in_reply_to_status_id). Both public replies (reply tweet) and DMs are supported.

⚠️ DM sending requires your app’s permission to be set to “Read and write and Direct message“. If you change this setting after initial setup, you must regenerate your Access Tokens.

TikTok

TikTok does not provide DM API access to third-party apps. Only public comment replies are supported.

Your TikTok app needs these scopes approved:

ScopeWhy it's needed
comment.listRead comment list
comment.createReply to comments

Your webhook must be subscribed to the comment.create event.

Webhook URL: /social-media/automation/webhook/tiktok

When creating a TikTok automation, only use the Public Reply action. Text, Button, Image, and Quick Reply DM actions will not work for TikTok.

Cron Job (Required)

A cron job must be configured for automations to execute. Without it, comments are received and stored, but no DMs or replies are ever sent.

Click here to view the Cron Job Configuration Guide.

Creating an Automation

Step 1 — Select Account

A setup wizard opens. Select a connected social media account from the dropdown. Only accounts that are fully connected with the required permissions appear. Once a platform is selected, a Platform Info notice displays relevant API limitations. Click Continue.

Step 2 — Build the Workflow

The automation builder opens as a visual node-based canvas with two core nodes:

When — defines the trigger that starts the automation
Do — defines the action performed once the trigger fires

Configuring the Trigger (When node)

Click + Add Trigger inside the When node, then select a trigger type. After selecting, the configuration panel walks through three sub-steps:

Select Post — Choose which content triggers the automation:

  • All Posts — monitors all posts and reels
  • Specific Post — targets a single post from your connected account.
  • Next Post — triggers on the next post you publish (Facebook/Instagram).

Set Trigger — Define the comment condition:

  • Any Comment — fires on every comment.
  • Specific Keywords — fires only when a comment contains defined words (e.g., “price”, “link”, “where to buy”).

Leave Comment (Optional) — Toggle Enable Public Replies to also post a visible reply in the comment thread. When enabled, you can add multiple reply variations — these are randomly rotated to appear natural and avoid spam detection signals. Click Save to confirm.

A Smart Delay option is also available in the trigger area to insert a timed wait period before the action fires.

Configuring the Action (Do node)

Click + Add Action to open the Send DM panel. Build your message using these content blocks (which can be added, removed, and reordered):

BlockDescription
+ Add TextPlain text message
+ Add ButtonButton with a label and URL
+ Add ImageImage attachment
+ Add Quick RepliesPredefined reply options for the recipient
+ Add DelayPause between message elements

A + Smart Delay node can also be added directly on the canvas between the trigger and action to introduce a timed wait before the DM is sent.

Step 3 — Name and Publish

Enter a name for the automation in the title field at the top of the builder. Then either:

  • Click Update to save as a Draft (inactive).
  • Click Set Live to activate immediately.

Automations cannot be set live if required account permissions are missing — the system enforces this at activation time.

Platform Support Summary

PlatformComment CaptureDM SupportPublic ReplyNotes
FacebookRequires pages_messaging + pages_manage_metadata
Instagram✅ (Private Reply)Business/Creator account + linked Facebook Page required; 7-day reply window
X (Twitter)Requires Pro Plan; X Enterprise API for full post fetching
TikTok❌ Not supportedDM API not available to third-party apps

Managing Automations

The Automation list page shows all automations with their current status, creation date, and linked account. Each automation can be edited via the pencil icon or managed via the actions menu. Multiple automations can be created per platform and per account.

Admin Controls

Plan-Based Access: Enable or disable Comment & DM Automation per pricing plan via Finance → Pricing Plans. If the feature is disabled on a user’s plan, an upgrade notice is shown and automation activation is prevented.

Troubleshooting

IssueLikely CauseSolution
Comments are received but no DM/reply is sentCron job not configuredAdd * * * * * cd /path && php artisan schedule:run to crontab
Automation logs show "failed"API credential error or expired tokenCheck error_message in the log; disconnect and reconnect the platform account
Webhook verification failingToken mismatchEnsure the Webhook Secret in the admin panel exactly matches the Verify Token in the Developer Console — no extra spaces or case differences
DM not sent on InstagramComment older than 7 daysTest with a fresh comment
No DM option on TikTokPlatform limitationUse Public Reply action only — TikTok does not allow third-party DM access
Instagram Private Reply shows as Message RequestFirst-time contactExpected behavior — recipient must accept the message request
X webhook not registeringFree developer planUpgrade to Basic plan ($100/month) or higher
Automation not triggeringStatus is DraftSet automation status to Live
Token expiredTokens expire or are invalidated after permission changesDisconnect and reconnect the account from Dashboard → User → Social Media

Frequently Asked Questions

Q: Do I need to set up a new webhook just for automation? No. If you already completed the Social Media Suite setup and registered your webhooks, the same webhook endpoints handle automation events. Just make sure you’re subscribed to the correct fields (feed for Facebook, comments for Instagram, comment.create for TikTok).

Q: Can I respond only to comments containing specific words? Yes. When configuring the trigger, choose Specific Keywords and define the words that should trigger the automation (e.g., “price”, “info”, “link”).

Q: Can I send DMs on TikTok? No. TikTok does not provide DM API access to third-party apps. Only public comment replies are supported.

Q: Will the Instagram recipient see the DM immediately? If it’s the first time you’re messaging that person, they’ll receive it as a Message Request and must accept it before they can read your message.

Q: Can I run multiple automations for the same platform? Yes. Multiple automations can be created per platform and per account. Each automation can target different posts or use different keyword filters.

Q: What happens if the automation fails? Failed automations are logged with an error_message in the ext_sm_pending_automations table and in storage/logs/laravel.log. The most common causes are expired tokens or missing API permissions.