Skip to content

Set up a LINE chatbot

LINEAll plansPermission:LINE Chatbot「Editable」
Location:LINE › Chatbot

By the end of this article you'll be able to create a chatbot that replies automatically when a friend sends a certain keyword, limit when and for whom it triggers, tag members along the way, and turn it off or delete it.

Before you start ​

  • The workspace needs a connected LINE Official Account.
  • You need LINE Chatbot permission. View Only lets you look; to add, edit, turn on or delete chatbots you need Editable, otherwise you'll see "No edit permission".
  • The Free plan allows up to 10 chatbots per platform. Beyond that you'll see the upgrade prompt.

Three kinds of chatbots ​

In the navigation bar, click LINE and choose Chatbot. The left side groups chatbots into three kinds:

KindWhen it repliesWhere it lives
Welcome message botsWhen a friend adds your LINE Official AccountUnder Basic chatbots
Event-triggered botsWhen something happens, such as a friend sending an image, sticker or location, blocking you, or the Default Reply when no other bot answersUnder Basic chatbots
Keyword chatbotsWhen a friend's text equals or contains a keyword you setUnder Keyword chatbots, organized in folders (up to three levels)

The screenshot below shows a keyword chatbot folder. The left side lists chatbot kinds and folders; on the right each row is a chatbot with Chatbot Name, Chatbot Status (a switch), Trigger Event and Trigger Keywords. The top-right has AI Generate, Display Fields and Add.

The chatbot list: all chatbots, welcome message bots, event-triggered bots and keyword chatbot folders on the left; on the right, the "Anniversary Sale" folder holds one chatbot "Anniversary sale info" with status off, trigger event Text Message and trigger keyword "anniversary"

Create a keyword chatbot ​

  1. (Recommended) Click "+" next to Keyword chatbots to add a folder, for example "Anniversary Sale".
  2. Click that folder, then click Add in the top-right to go straight to the create page. (If you click Add from All chatbots, you'll first choose a type under Select Chatbot Type and pick a folder.)
  3. On the Bot Settings tab, enter a Chatbot Name.
  4. Decide the Chatbot Status: it's on by default on the create page, so the bot starts replying as soon as you save. Turn it off if you're not ready.
  5. Enter keywords in Trigger Keyword (Equals) or Trigger Keyword (Contains) and press Enter to add each one, up to 20 per field.
  6. Switch to the Edit Message tab and add the reply messages (up to 5; you can also choose Template).
  7. Click Save in the top-right.

The animation below clicks Add in the "Anniversary Sale" folder, enters the chatbot name, and turns the Chatbot Status off.

The screenshot below shows the top of the Bot Settings tab. Basic Settings has the chatbot name, status and Chatbot Time Zone (the reference time zone for date and time settings), with Restriction Conditions below. On the right, Bot Information shows the trigger event is Text Message.

The Bot Settings tab: chatbot name "Anniversary sale info", Chatbot Status off, time zone UTC+8; Trigger Duration under Restriction Conditions is set to No Limit

Next it scrolls down to Trigger Keyword (Equals), types "anniversary" and presses Enter; the keyword turns into a chip.

Then it switches to the Edit Message tab, clicks Text and types the reply. Message Preview on the right shows what friends will receive.

Finally it clicks Save and returns to the folder, where the new chatbot appears with its status off.

Restriction conditions and tag settings ​

The Bot Settings tab lets you limit when and for whom the bot replies, and tidy up tags when it triggers:

SettingWhat it doesLimits
Trigger DurationOnly triggers within a date range: No Limit, Before (inclusive), After (inclusive), Between (inclusive)Based on the chatbot time zone
Weekly Effective PeriodOnly triggers on certain weekdays and hours, such as office hours
Limit Tag Trigger for ChatbotOnly applies to members with the chosen tagsUp to 40 tags; choose "Possess all tags simultaneously" or "Possess any one tag"
Exclude Tag Trigger for ChatbotMembers with the chosen tags won't trigger itUp to 40 tags
Trigger EnvironmentTriggers in LINE friend chats (Bot), LINE groups (Group) or both (Bot and Group)Some message formats aren't available for groups
Trigger Add Tag, Trigger Remove TagAdds or removes tags on the member when triggeredUp to 15 to add, 60 to remove
Share Add TagAdds tags when a member shares this messageUp to 15
Service center transferHands the conversation to Service Center after triggering

Turn on, turn off and delete ​

  • Turn on or off: flip the Chatbot Status switch right in the list. You'll see "Chatbot Activated" or "Chatbot Deactivated".
  • Duplicate, move, download trigger records: click "⋯" at the end of a chatbot's row to Duplicate, Move it to another folder, or Download Trigger Records (recent 10,000 records).
  • Delete: click "⋯", choose Delete, and click Confirm in "Confirm Delete "chatbot name"?".

The animation below clicks "⋯" on the chatbot we just created, chooses Delete and clicks Confirm; the chatbot disappears from the list.

When you delete a folder, the confirmation says "Items in the folder will be deleted as well", so the chatbots inside are deleted too.

How it works ​

  • The create page defaults to on. As soon as you save, the bot starts replying to real friends. When testing a new bot, turn its status off first and switch it on from the list once you've checked the content.
  • "Equals" is stricter than "Contains". Contains triggers whenever the keyword appears anywhere in the message; for example the keyword "sale" also fires on "is the sale over?". To respond only to an exact command, use Equals.
  • Richmenus can trigger keywords. A Richmenu button set to Send text sends the text as the friend, which can trigger a keyword chatbot. See Set up LINE Richmenus.

FAQ ​

Trigger keyword cannot be empty ​

A keyword chatbot needs at least one keyword. Type it into Trigger Keyword (Equals) or (Contains) and press Enter.

Message content cannot be completely empty ​

The Edit Message tab doesn't have any messages yet. Add at least one message before saving.

A friend sent the keyword but got no reply ​

First check that the Chatbot Status is on in the list, then check whether Trigger Duration, Weekly Effective Period, limit or exclude tags, or Trigger Environment rule this friend out.

Next steps ​