Line

Creating a Line bot is easy.

SnatchBot gives users the possibility to create and configure a chatbot for multiple channels. You can add the same bot to as many channels as are available. Here, we explain how to connect a bot to LINE.

First, create your bot first (you can use an existing bot as well):

After this is done, go to the bot’s settings and open the Channels section in the left hand column. In the next panel, you will see a ‘Line’ option:

3138

To get started, you will need to create a LINE Account first. Once you have created a normal LINE account and registered your email and password, please log in to the LINE Developers console with the email address and password you already have:

974

Register as a developer (only on the first login) to proceed. To do this, specify your name and email address and accept the LINE Developers Agreement:

974

The next step is to create a new provider:

974

The provider is the entity (individual or company) that offers your chatbot (as an app). You can put your own name or company’s name here, and then confirm it:

974 974

After the provider has been created, you will need to create a channel. Select Messaging API to proceed:

974

In the open form, enter information for the Messaging API. You can specify your app name, icon and app description here:

974

In this step, you can also select the plan that you would like to use. Please note, that only with a Developer Trial you will be able to push messages. Using a free account, you will not be able to push messages. You can upgrade your Developer Trial by buying a premium ID:

974

Do not forget to specify the Category and Subcategory of the channel as well as the email address to which important notifications are sent:

974

After you confirm the creation of the channel and accept all the Terms of Use, click the channel’s tile and navigate to the ‘Messaging settings’ section:

974

In the ‘Channel access token (long-lived)’ menu, click the ‘Issue’ button, and then select 0 hours from the drop-down menu and confirm the form. Enable using the Webhooks option and paste the following URL in the ‘Webhook URL’ field: snatchbot.me/channels/api/line/getMessage/id4565:

974

To finish the process, disable the ‘Auto-reply messages’ and ‘Greeting messages’ options in the ‘Using LINE@ features’ section:

974

Copy the Channel access token (long-lived) and Channel secret values and paste them in the appropriate fields to get everything ready:

3136

Please use the QR code you are given to add your bot to a contact list and to share your bot with other users:

974

You are now all set to send or receive the first message from your Bot (using either a mobile application or a desktop version):

535

You can add your LINE ID for quick access to test chat and sharing (optional).

Line ID field
To get the LINE ID:
Go to https://manager.line.biz/
Select the channel that you wish to share and copy the LINE ID, you can find it in the top left corner of the page as indicated in the screenshot below:

739

🚧

Some restrictions:

  1. Facebook attributes ([attribute=first_name] [attribute=profile_pic]) are available for Line. They become available once the user performs any action with the bot connected to the Facebook channel (such as starting a conversation or sending the bot a message).
  2. Persistent Menu (ProPlan): "Disable text input” and “Submenu” features are not available to the Persistent Menu. The maximum number of items in the menu is six.
  3. Line limits the number of Quick Replies to four. Additional Quick Replies won't be shown.
  4. The following plugins are not available for Line: Calendar, eBay, Jira, Giphy.
  5. In Line, if the “Display several stories in one line” option is enabled, users will not be able to subscribe to RSS, and “Allow users read RSS content in bot” will be enabled by default. This limitation is due to Line’s gallery display guidelines.
  6. Cards: the maximum length of a card’s “Description” field is 60 chars.
  7. Gallery: to use the “Display in one line” option, make sure you have added an equal amount of buttons in each gallery element in order for them to be displayed correctly in Line.
  8. “Title” and “URL” fields are not visible in Line.

Watch this video tutorial ''How to create a Line bot''


Next Steps

How to access your bot beyond Snatchbot.me.