---
# System prepended metadata

title: AI WIZE - Autopilot - Line Message

---


# Developer Guide

## LINE API Support

[Messaging API](https://developers.line.biz/en/reference/messaging-api)
- push
- reply
- multicast
- narrowcast
    - need to maintain the Audience Group
- broadcast

[Message Type](https://developers.line.biz/en/reference/messaging-api/#text-message)
- Text message
- Sticker message
- Image message
- Video message
- Audio message
- Location message
- Imagemap message
    - custom clickable area
- Template messages
- Flex Message

## AIWIZE - LINE Message App Design

### Connection

- use [Long-lived channel access token](https://developers.line.biz/en/docs/basics/channel-access-token/#channel-access-token-types) as API access token.
- use [Bot Info Api](https://developers.line.biz/en/reference/messaging-api/#bot) to validate the access token and fetch the account's display name to set it as the connection display name in AIWIZE.

### Actions

An action using a specific Message API in conjunction with a particular Message Type.

- [x] Send broadcast text message
- [ ] Send broadcast image message
- [ ] Send broadcast imagemap message
    - [ ] layout - 2 images
    - [ ] layout - 4 images
    - [ ] layout - 6 images
    - [ ] layout - ...etc

## Reference

- [LINE Channel Access Token](https://developers.line.biz/en/docs/basics/channel-access-token/)
- [LINE Messaging API Reference Doc](https://developers.line.biz/en/docs/messaging-api/overview/)


# User Guide

### TL;DR

You have to

- For existing channel, enable the **LINE Message API** in the [LINE Official Account Mamager](https://manager.line.biz/).
- For a new channel, visit the [LINE Developer Console](https://developers.line.biz/console/) to create a new **Messaging API Channel**.
- Generate a `Channel Access Token (long-lived)` from the [LINE Developer Console](https://developers.line.biz/console/).

You will

- Optain then `channel access token (long-lived)` to set up the AI WIZE LINE Message Connection

## Setup Steps

### 1. Enable Messaging API on LINE Official Account Manager

#### 1.1 If you already have an existing channel.

1. Log in to [LINE Official Account Mamager](https://page.line.biz) using you account.
2. Navigate to the **Shopping Mall** tab.
3. Access the menu by selecting **Setting** > **Messaging API**.
4. Enable the LINE Messaging API

![](https://hackmd.io/_uploads/S1p6zOSG6.png)

![](https://hackmd.io/_uploads/Hykt7dBG6.png)

![](https://hackmd.io/_uploads/SJ1qmdBzT.png)

![](https://hackmd.io/_uploads/HJ46QdSza.png)

![](https://hackmd.io/_uploads/HkJz4dHz6.png)


#### 1.2 If you don not have channel.

1. Visit [LINE Developer Console](https://developers.line.biz/console/) to create a new provider.
2. Create a new **Channel** with **Messaging API** channel type selected under your provider.
3. Once done, you will have a new **Channel** with the **Messaging API** enabled.

### 2. Generate Channel Access Token (long-lived)

1. Visit [LINE Developer Console](https://developers.line.biz/console/) and choose your channel.
2. Click on your **provider name**.
3. Select your **account**.
4. Navigate to the **Messaging API** tab.
5. Issue a [Long-lived channel access token](https://developers.line.biz/en/docs/basics/channel-access-token/#channel-access-token-types).
6. Use this token as the **LINE Message Connection token** on AIWIZE.


![](https://hackmd.io/_uploads/rkRKMaBzT.png)


### 3. Setup AI WIZE LINE Message Connection

1. Open AIWIZE, navigate to **My Apps** and select **Add Connection**.
1. Choose **LINE Message**.
1. Input the **Channel access token** into AIWIZE as the LINE Message Connection **token**.
1. You're now ready to use the LINE message app on AIWIZE.

