# Your first automation

This walkthrough builds a simple automation that is still useful. When someone comments `PRICE` on your posts, Tuku sends them the price in a DM and replies to the comment in public.

It takes about five minutes.

## Before you start

- Your TikTok account is [connected](/getting-started/connect-tiktok), and the [connection checklist](/getting-started/connect-tiktok#connection-checklist) shows no failed checks.
- The account has at least one published post.
- You have one product you want to promote.
- Your role can edit automations. Owners, Admins and Managers can. Agents, Billing Managers and Viewers can only view them.

:::note
Comment-to-DM only works for accounts registered in Vietnam, Indonesia or Thailand that are a Verified Business Account (VBA), or that have Advanced Access and ran TikTok Messaging Ads in the last 7 days. If the **Comment-to-DM** check fails for your account, build a **DM Keyword** automation instead. The steps are the same, but you skip the public reply.
:::

## Step 1: Start a new automation

1. Open **Automations** from the sidebar.
2. Click **New automation from scratch**.
3. Type a name you will recognise later, like `Price reply — Hydra Serum`.
4. Click **Create & Open Editor**.

The editor opens. Your automation is **not saved yet**: the header shows a **Not saved yet** badge until you click **Save Draft** or **Publish** for the first time. If you leave before that, Tuku asks you to confirm, and nothing is kept.

An automation has a **trigger** (when it starts) and a **flow** (the steps it runs). You build both on the same canvas. Click a step on the canvas to edit it in the **Settings** panel. The **Preview** tab shows what the customer will see.

*Screenshot: The automation editor with the Comment Keyword trigger selected: the flow on the canvas and the trigger's Keywords, Match Condition and Post Scope settings on the right*

## Step 2: Set the trigger

Click the **Trigger** step on the canvas. Then:

1. Set **Trigger Type** to **Comment Keyword**.
2. Under **Keywords**, type each keyword and press Enter: `PRICE`, `ราคา`, `เท่าไหร่`.
3. Leave **Match Condition** on **Contains**.
4. Leave **Post Scope** on **All Posts**. You can pick **Specific Posts** later.
5. Optional: under **Comment actions**, turn on **Like the comment**.

## Step 3: Write the DM

1. Click the **+** under the trigger and choose **Send Message**.
2. Write the DM. Use your real product words:

> Hi! ราคา Hydra Serum 30ml คือ ฿890 ค่ะ 🌿 สนใจสั่งซื้อ พิมพ์ "สั่งเลย" ได้เลยค่ะ เดี๋ยวแอดมินช่วยดูแลต่อ

In a comment automation, the first message must be a text **Send Message** step. TikTok delivers only that one message until the customer replies.

:::note
Tuku does not translate. The customer sees exactly what you write.
:::

## Step 4: Add the public reply

1. Click the **+** under **Send Message** and choose **Reply to comment**.
2. Write a short reply, for example `ส่งรายละเอียดให้ทาง DM แล้วนะคะ ✨`.

Put the reply **after** the DM. If TikTok does not deliver the DM, the flow stops, so the reply never promises a DM that was not sent. See [Reply to comment](/automations/flow-nodes#reply-to-comment).

## Step 5: Publish

Click **Publish**. If something is missing, Tuku lists what to fix first. After publishing, the header shows **Published v1** and the automation is **Active** on the **Automations** list.

## Step 6: Test with a real comment

1. From a second TikTok account (or a teammate's), comment `ราคา` on one of your posts.
2. Open **Inbox**. If TikTok let the DM through, you see a new conversation with the DM your automation sent.

TikTok only allows a DM for comments it judges as **high intent**. A test comment may not qualify. In the editor **Preview**, switch **Delivery scenario** to **DM not delivered** to see what happens then. Read [Who actually gets a DM](/automations/comment-triggers#who-actually-gets-a-dm).

If nothing happens, see [Troubleshooting](/troubleshooting#automation-didnt-fire).

## What to do next

| You want to… | Read |
| --- | --- |
| Start from a ready-made automation | [Automation templates](/automations/templates) |
| Reply on more posts, or only some posts | [Comment triggers](/automations/comment-triggers) |
| Ask a question and branch on the answer | [DM flows](/automations/dm-flows) |
| Let a teammate handle a tricky chat | [Human handoff](/inbox/human-handoff) |
| Greet new followers automatically | [Auto messages](/automations/auto-messages) |