# TikTok Automation

Automatically reply to TikTok video comments and DMs based on keywords, including selling by DM with Ask for Payment.

TikTok automation replies to comments on your videos and DMs to your TikTok account automatically, based on keywords. Each automation has one trigger type: comments **or** DMs.

{% hint style="info" %}
This guide is for the **new dibales.ai dashboard**. Still on the old layout? See [Set Up Auto Reply Comment](/tiktok/setup-auto-reply-comment) and [Set Up Auto DM](/tiktok/setup-auto-dm).
{% endhint %}

<div class="demo-pair">

{% comment-demo name="Kopi Senja" username="kopisenja" video="Kopi Senja's new menu" caption="1. Reply to comments: replies in the comments and invites people to send a DM" %}
comment: dewi.ananda: PRICE
reply: Sure! Send us MENU by DM and we'll reply with the price list 📩
{% endcomment-demo %}

{% dm-demo name="Kopi Senja" username="kopisenja" caption="2. Reply to DMs: replies to DMs that contain the keyword" %}
user: MENU
bot: Hi! Here's today's Kopi Senja menu ☕ kopisenja.id/menu
{% enddm-demo %}

</div>

On Instagram, people who comment can get a DM right away in one flow. The TikTok API doesn't allow that yet, so on TikTok the flow uses two automations: the comment reply invites viewers to send a certain word by DM, then a DM automation replies to that word with the info you promised.

## Before you start

- **A TikTok Business account** that's connected. If it isn't yet, follow [Connect Your Accounts](/dashboard/mulai/hubungkan-akun). Personal accounts can't use automation.
- **A published video**, if you want to reply to comments on a specific video.
- **Another TikTok account** to test with, such as your personal account or a friend's.

## How it works

| Guide | What you do |
| --- | --- |
| [Reply to Comments](/dashboard/tiktok/automation/balas-komentar) | Choose a video, set the keywords, then write reply variations for the comments |
| [Reply to DMs](/dashboard/tiktok/automation/balas-dm) | Set the DM keywords, then put together the reply messages |
| [Ask for Payment](/dashboard/tiktok/automation/ask-for-payment) | Sell digital products by DM: the buyer pays, then the product is sent automatically |

For the full flow in the example above, make two automations: **Reply to Comments** with replies that invite people to send *MENU* by DM, and **Reply to DMs** with the keyword *MENU*.

#### 1. Open TikTok Automation

![The TikTok automation list](/assets/dashboard/tiktok/tta-01-daftar.png)

1. In the sidebar, open **TikTok** › **Automation**. On a phone, open the menu first with the ☰ icon at the top right.
2. Click **Create automation**.

💡 The **All**, **Comments**, and **DM** tabs group automations by trigger.

***

#### 2. Choose how to start

![Ways to create a TikTok automation](/assets/dashboard/tiktok/tta-02-menu.png)

1. Choose **Start from scratch** to reply to comments or DMs, then continue in [Reply to Comments](/dashboard/tiktok/automation/balas-komentar) or [Reply to DMs](/dashboard/tiktok/automation/balas-dm).

The **Ask for Payment** preset is for selling by DM, see [Ask for Payment](/dashboard/tiktok/automation/ask-for-payment).

## Managing automations

Click the **⋯** icon on an automation's row to **View details**, **Pause** / **Resume**, **Duplicate**, **Edit**, or **Delete**. **Delete** asks you to confirm with **Delete this automation?**, then the automation stops replying and all its data is permanently deleted. If you only want to stop it for a while, use **Pause**.

The detail page shows **Performance**, **Configuration**, and the **Comments** tab (the comment log, see [Reply to Comments](/dashboard/tiktok/automation/balas-komentar#4-test-it-then-check-the-comment-log)) and the **Orders** tab (for Ask for Payment).

## Troubleshooting

| Problem | Fix |
| --- | --- |
| A notice says the TikTok account is disconnected or still a personal account | All automations stop. Reconnect the same account, or switch to a Business account using [how to switch to a Business account](/tiktok/integrasi-akun-tiktok#how-to-switch-to-a-business-account). |
| *Can't resume because the TikTok account isn't active.* | Reconnect the TikTok account, then click **Resume**. |
| People who comment don't get a DM | On TikTok, comment replies don't send DMs. Make a separate **Reply to DMs** automation, and invite viewers to send its keyword by DM. |
