TikTok Comment Auto-Reply & API
TikTok API for BusinessConnect your TikTok Business Account in 1 click for automated video Comment Auto-Replies (DM Coming Soon)
Switch to a TikTok Business Account & Enable DMs
To receive and reply to DMs via TikTok Business Messaging API, your account must be a Business Account:
- Open the TikTok app → Profile → Menu (☰) → Settings and privacy → Account → "Switch to Business Account".
- Go to Settings and privacy → Privacy → Direct messages → select "Everyone" so incoming customer DMs reach your Unified Inbox and AI agent.
- Ensure the account owner is 18+ and your TikTok Business Account is active and verified.
Platform Admin Setup (TikTok API for Business Portal)
One-time setup for the "Taqfu AI" app in business-api.tiktok.com (works across all merchant stores once set):
- Log in to business-api.tiktok.com → My Apps → Taqfu AI → Basic Information.
- Set TikTok account holder redirect URL to: https://taqfu.com/api/channels/tiktok/callback
- Under Authorization → Scopes, enable TikTok Accounts & Business Messaging permissions: user.info.basic, user.info.username, user.account.type, message.list.read, message.list.send, message.list.manage.
- Save your App ID (Client Key) and App Secret in Super Admin → Settings → Business & Social (or server .env as TIKTOK_APP_ID and TIKTOK_APP_SECRET) and subscribe the Webhook URL https://taqfu.com/api/webhook/tiktok (event_type: DIRECT_MESSAGE).
1-Click Connect TikTok (From Merchant Settings)
Merchants never paste Client Secrets or manual tokens — connection uses official OAuth 2.0:
- Go to Taqfu Dashboard → Settings → Channels and click "Connect TikTok" on the TikTok Direct Messages (DM) card.
- Sign in on TikTok’s official consent screen, choose your TikTok Business Account, and click "Authorize".
- You will return automatically to Taqfu Settings showing your @username as Connected, immediately activating AI auto-replies, Unified Inbox, Analytics, and Follow-Up Engine.
Test Auto-Replies, Images & the 48-Hour Policy Window
After connecting, send a DM to your Business Account from another TikTok account:
- When a customer sends text or an image, Taqfu AI reads your Product Catalog & Knowledge Base and replies automatically in their language.
- If a human agent replies manually from the TikTok app (Echo event), AI automatically pauses for Human Takeover.
- Per TikTok Business Messaging policy, businesses cannot initiate cold DMs before a customer messages first, and replies/follow-ups are sent within 48 hours of the customer’s latest message.
⚡ Webhook Callback & Verify Token Info
https://taqfu.com/api/webhook/tiktokhttps://taqfu.com/api/channels/tiktok/callback🔒 For security, your unique store Verify Token is stored privately inside your account. Open Dashboard > Channels & AI > Manage to copy your store Verify Token.
• Zero Manual Secrets: OAuth tokens are encrypted at rest (AES-256-GCM) and auto-refreshed before their 24h expiry using the 1-year refresh token.
• Regional Privacy Redaction: Per TikTok policy, message bodies from users in the EEA, UK, or Switzerland may be redacted by TikTok for privacy compliance.
• 48-Hour Messaging Window: Follow-ups outside 48 hours of the customer’s last DM are automatically marked EXPIRED to comply with TikTok rules.