# Set Up Auto DM

Automatically reply to TikTok DMs when viewers send a keyword.

{% dm-demo caption="A viewer sends EBOOK by DM, and the link is sent right away" %}
user: EBOOK
bot: Hi! Thanks for messaging Sebelum Kreatif 🙌 Here's the free ebook link: https://lynk.id/sebelumkreatif/ebook
{% enddm-demo %}

Auto DM replies to messages in your TikTok DMs based on a keyword. Pair it with [Auto Reply Comment](/tiktok/setup-auto-reply-comment): the comment reply invites viewers to send the keyword by DM, and Auto DM sends the link or info you promised.

Before you start, make sure your TikTok Business account is connected. See [Connect Your TikTok Account](/tiktok/integrasi-akun-tiktok).

#### 1. Create a new automation

In the sidebar, choose the **TikTok** tab, open **Automation**, click **New Automation**, then **Create New**. On a phone, open the menu first with the icon at the top left. Fill in the **Automation Name**, for example *Send the ebook link by DM*.

#### 2. Set the trigger

![TikTok Message target and keyword](/assets/tiktok/tt-06-dm-pemicu.png)

1. Under **Listening to**, choose **TikTok Message**
2. Fill in the **Keyword**, the word viewers send by DM. Use the same word you asked for in the comment reply, for example `EBOOK`. Separate them with commas if there's more than one.

💡 Leave the **Rule** on **Contains** so messages like "EBOOK please" also get a reply. The other rules are explained in [Set Up Auto Reply Comment](/tiktok/setup-auto-reply-comment).

#### 3. Write the DM reply

![Message Type, message, and Add Another Message](/assets/tiktok/tt-07-dm-balasan.png)

1. **Message Type**, choose one:
   * **Text**: a text message, links allowed.
   * **Template Button**: a message with up to 3 buttons. Each button has a **Reply Message** that's sent when the button is tapped.
   * **Image**: send an image, for example a catalog or price list.
   * **Share Post**: send one of your TikTok videos.
2. **Message**: the DM content. You can see the result right away in the **Preview**.
3. **Add Another Message**: send several messages in a row, up to 5 messages per keyword. For example, a greeting first, then a product image.

When you're done, click **Create Automation** at the top right. On a phone, the button is below the form.

✅ The automation is active right away and appears in the **DM Automations** tab.

{% hint style="warning" %}
TikTok scans DM content automatically. Messages that direct transactions outside TikTok may be moderated, so use DMs for education or sharing content. More in the [Overview](/tiktok/overview).
{% endhint %}

💡 Want to collect payment right in the DM? Choose the **Ask For Payment** preset when you click **New Automation** (**Pro** plan only).
