Prerequisites
- TikTok Business account
- TikTok Developer account
- OAuth credentials from TikTok for Developers
Setup
Create TikTok Business account
- Go to TikTok for Business
- Create a business account
- Complete business verification
Set up TikTok Developer App
- Visit TikTok for Developers
- Create a new app
- Enable the Messaging API product
- Configure OAuth redirect URLs
Get OAuth credentials
From your TikTok Developer app settings, copy:
- Client Key (App ID)
- Client Secret
Authorize TikTok
Click Sign in with TikTok and authorize Chatwoot to access your TikTok Business account.Required permissions:
user.info.basic- Basic profile informationuser.info.profile- Profile detailsuser.info.stats- Account statisticsvideo.list- Video list access
Features
- Direct messages - Receive and reply to TikTok DMs
- OAuth authentication - Secure token-based authentication
- Automatic token refresh - Tokens refresh automatically before expiry
- Rich media - Send images and videos
- Business account integration - Connect verified business accounts
OAuth Token Management
TikTok uses OAuth 2.0 with token expiration:OAuth access token for API authentication (encrypted at rest)
Token used to refresh access token when expired (encrypted at rest)
Access token expiration timestamp
Refresh token expiration timestamp
Unique TikTok Business account identifier
Token Refresh
Chatwoot automatically refreshes access tokens before they expire. TheTiktok::TokenService handles:
- Checking token expiration
- Refreshing tokens using refresh token
- Updating token values in database
- Handling authorization errors
Best Practices
Respond quickly to maintain engagement with users
Use automation rules for initial responses
Monitor token expiration and reauthorize if needed
Keep business account information up to date
Set up CSAT surveys to gather feedback
Troubleshooting
Cannot connect TikTok account
Cannot connect TikTok account
- Verify it’s a TikTok Business account (not personal)
- Ensure business verification is complete
- Check OAuth credentials are correct
- Verify redirect URLs match in TikTok Developer settings
- Clear browser cache and try again
Messages not syncing
Messages not syncing
- Reconnect TikTok account in Chatwoot
- Check access token hasn’t expired
- Verify TikTok Developer app status is active
- Ensure Messaging API product is enabled
- Check Chatwoot logs for authorization errors
Authorization expired
Authorization expired
Cannot send messages
Cannot send messages
- Check if user has messaged you first (TikTok requires this)
- Verify access token is valid
- Ensure business account is not restricted
- Check message content complies with TikTok policies
Limitations
- TikTok requires users to message you first before you can initiate conversation
- Access tokens expire and require refresh
- Business account verification required
- Some TikTok features may not be available through API
- Message types and media formats have restrictions

