Prerequisites
Before starting the setup, ensure you have:- A self-hosted ChatbotX instance accessible via a public HTTPS URL.
- A TikTok Business Account registered in a supported region (personal TikTok accounts are not supported).
- Direct messages set to Everyone in your TikTok app settings (otherwise, you will need to manually accept new message requests).
- A TikTok Developer Account created at developers.tiktok.com.
- Super Admin access to your ChatbotX instance.
Step 1: Create a TikTok Developer Account
To get started, you must register a developer account on TikTok. This account lets you manage and configure the messaging link between TikTok and ChatbotX.Register as a developer
Verify account
Step 2: Register Your App
Registering your application in the developer portal provides you with the key credentials (App ID and App Secret) needed to securely link ChatbotX to TikTok.Create a new app

Fill in app details
- App Name: e.g.,
Your Company - ChatbotX - App Description: Explain your messaging and support use case.
- App Icon: Upload your company logo.
- Terms of Service URL: Your company’s ToS page.
- Privacy Policy URL: Your company’s privacy policy page.
Copy App credentials
Step 3: Apply for Business Messaging API Access
TikTok requires you to request access to the messaging endpoints. This is a security review step to ensure data is handled safely.Request Business Messaging product
Submit the access application
- Your use case (e.g., providing automated customer support).
- Details on how you handle user data.
- Your business/organization details.
Wait for review
Step 4: Configure ChatbotX Credentials
With your TikTok credentials generated and Webhooks configured in Meta, save these settings in ChatbotX to link the integration.Configure via Super Admin Panel
Configure via Super Admin Panel
Open the TikTok configuration

Click Save. TikTok will now be available as a channel when creating chatbots.

Step 5: Configure App Permissions and Redirect URLs
Once approved, you need to enable the specific account permissions and tell TikTok where to send users after they log in (Redirect URL).Enable permissions

Add redirect URL
Step 6: Connect Your TikTok Account
With the technical setup finished, you can now link your actual TikTok Business account to ChatbotX.Open Channels Settings

Authorize ChatbotX on TikTok

Verify connection in ChatbotX

Troubleshooting
TikTok Channel not appearing in dashboard
TikTok Channel not appearing in dashboard
Not receiving incoming messages
Not receiving incoming messages
Tiktok::AuthClient.webhook_callback in the Rails console to verify that the webhook is registered. Check that your server can receive public HTTPS requests and that your business account is registered in a supported region.Messages failing to send
Messages failing to send