Xgenious/ docs

TikTok

The TikTok plugin connects a TikTok Business Account to your chatbot. A visitor who sends your account a direct message opens a chat session and gets an AI answer.

Open it from TikTok in the left-hand menu.

Warning

This plugin is in beta. TikTok's Business Messaging API is region-locked and rate-limited. Read Regional limits and Message limits below before you promise TikTok support to a given audience.

Regional limits

TikTok's Business Messaging API is in open beta for APAC, LATAM, METAP and non-US North America. Messages from users in the United States, EEA, United Kingdom and Switzerland cannot be received. Do not advertise TikTok coverage to those audiences.

Message limits

  • At most 10 replies per 48 hours per conversation.
  • The visitor must write first — you cannot start a conversation.
  • Text only. A single message is capped at roughly 2,000 characters.
  • Images, video and stickers are not supported; the visitor gets a polite text-only notice instead.

Before you start

You need a TikTok developer app with the Business Messaging API product and its data-security review completed.

  1. In your TikTok developer app, open Basic Information and copy the client key and client secret.
  2. Authorize the app from your TikTok Business Account and copy the access token, the open_id (used as the business ID), and the refresh token.
  3. In the TikTok app, set the Business Account to accept direct messages from everyone, so owners do not have to accept each request by hand.

Connect an account

  1. In HelpNest, open TikTok and choose the Connect an account tab.
  2. Pick the Answering chatbot. A chatbot can answer several accounts, but an account belongs to one chatbot.
  3. Paste the Developer app client key.
  4. Paste the Developer app secret.
  5. Paste the Business ID (open_id).
  6. Paste the Access token and, recommended, the Refresh token.
  7. Leave Answer TikTok chats ticked and click Connect TikTok.

The access token refreshes itself once when TikTok reports it expired, but only if the refresh token is stored — keep it.

Point TikTok at HelpNest

Each connection shows its own Callback URL in the form /tiktok/webhook/{token}. In your TikTok developer app, subscribe to the DIRECT_MESSAGE webhook event and register that URL.

Warning

TikTok must be able to reach the Callback URL over the internet. On a local install, expose your site with a tunnel such as ngrok and register the public URL.

Manage a connection

ControlWhat it does
TestChecks the stored credentials against TikTok.
Pause / ResumeStops or restarts replies without removing the connection.
Answering chatbot dropdownRe-points the account at a different chatbot and clicks Change.
RemoveDisconnects the account and deletes its connection.
Still stuck?
Our support team is ready to help you get set up.
Get support