> For the complete documentation index, see [llms.txt](https://docs.omnichat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnichat.ai/en/features/interactive-games-add-on-module/line-developer-pre-setting.md).

# LINE Developer Pre-Setting

Before using Interactive Games on LINE, please preset the step below

To connect the LINE official account and Interactive Games, please process integration according to your login channel's related detail

You can login your LINE Official Account Manager (Line OA Backend) -> "Setting" -> "Messaging API" -> Click "LINE Developers"

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FxU3iQ7ZHMH4QmQQ2leVm%2F%E6%88%AA%E5%9C%96%202023-04-07%20%E4%B8%8A%E5%8D%8810.49.44.png?alt=media&amp;token=afa83ae6-9274-4f58-a49c-cbfa1caba5f4" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Login LINE Developers backend and confirm whether the Login channel and Messaging API channel are in the same provider!
{% endhint %}

## LINE Developers Q & A

#### Q: When I log in to LINE Official Account Manager (Line OA Backend) -> "Setting" -> "Messaging API" -> After clicking the "LINE Developers", I see the below screen

A: If you log in to your LINE account and display the below screen, means you are not the administrator to that LINE account's Provider and Messaging API Channel. Please consult your colleagues if they have created a Messaging API Channel before and follow this path to enter. If not, please contact LINE official customer service to get back the account access

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FBDPOgQpDfeSaVrAdeEn3%2F%E6%88%AA%E5%9C%96%202022-03-31%20%E4%B8%8B%E5%8D%8812.45.24.png?alt=media\&token=7da9b8c5-b742-42cd-b23e-7ff86f53287f)

#### Q: Login channel and Messaging API Channel have to be in the same Provider?

A: Yes, because LINE officially stipulates that the Login channel and Messaging API Channel must be in the same Provider to trigger the related feature

#### Q: If I cannot find the Messaging API Channel, can I create a new one?

A: Cannot, as each LINE official account only have one Messaging API Channel, so you cannot create one more. If you cannot find the access to Messaging API Channel and the belonged Provider, please contact LINE's official customer service

#### Q: If the other colleagues found the Messaging API Chanel, what can they do to authorize others?

A: Can authorize others through E-mail, please refer to the following step. First, authorize the Provider, then enter to Messaging API Channel and authorize by E-mail

{% hint style="info" %}

1. If authorize others through E-mail, it cannot withdraw the authorization letter
2. Login to E-mail to get Provider / Channel authorization, please confirm the login account (LINE personal account or email)
3. Cannot delete the created Messaging API Channel's account
   {% endhint %}

![Click "Role" in the Provider](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FbaDNPf0Wh9p8Rgtq6PKy%2F%E6%88%AA%E5%9C%96%202022-03-31%20%E4%B8%8B%E5%8D%882.45.02.png?alt=media\&token=ffde49c2-bd28-4c34-877a-edde18091868) ![Following the step under "Role"](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FvmuDl15kmWHdC34CIru9%2F%E6%88%AA%E5%9C%96%202022-03-31%20%E4%B8%8B%E5%8D%882.45.54.png?alt=media\&token=8788df6d-99fc-4871-bae2-913bdd798f3a)

First, click "Role" in the Provider

1. Invite by email
2. Enter the colleague you want to authorize
3. Send the invitation

![Messaging API Channel](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FGNV6ool3QZaoYWXRQVbK%2F%E6%88%AA%E5%9C%96%202022-03-31%20%E4%B8%8B%E5%8D%882.52.56.png?alt=media\&token=b89766f0-7596-4a8f-82e9-18857714ff32)

#### Q: Why I cannot link the LINE OA account / cannot use the Login Channel, even I following below step to create a Login Channel?

A: Please check your created Login Channel whether in the same Provider with Messaging API Channel (As the image below). If have not see the similar screen or have not see the Messaging API Channel, please go back to [Q1 ](#q-wo-cong-line-official-account-managerline-oa-hou-tai-she-ding-messaging-api-dian-ji-line-developer)to confirm the authorisation first

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FVdqUdT4jQD20uP8oOE1f%2F%E6%88%AA%E5%9C%96%202023-03-14%20%E4%B8%8B%E5%8D%887.05.49.png?alt=media\&token=a7fef087-9d3e-46a1-83db-991d8fb3c1c9)

## Have not created Login Channel account yet

### Step 1: Create a LINE Login Channel (If created in the backend already, please skip to [Step 5](#bu-zhou-wu-zai-line-login-channel-chuang-jian-yi-ge-liff-bing-tian-ru-zi-xun))

1. Login to LINE Developer backend (<https://account.line.biz/login>) and select your brand's provider
2. Click Create a new channel
3. Select LINE Login

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2Fji0Igwr8G51fYEf2sBzX%2FEnglish.gif?alt=media\&token=3f5d75f4-f3d4-45a7-a905-e46dca75b167)

### Step2: Fill in the LINE Login channel information

1. Region -> select **Taiwan**
2. Channel icon: Using your company's official icon
3. Channel name: Your company LINE official account's name
4. display app
5. "Tick" "I have read and agree to the LINE Developers Agreement"
6. Click "Create"

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F8xPn0p7cGQ41C4l3nEZw%2F%E6%88%AA%E5%9C%96%202023-03-15%20%E4%B8%8B%E5%8D%886.43.24.png?alt=media\&token=0a2aedb1-2419-4dbb-b65b-83cbc5a194e2)

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FPrh0FSYHCqbuyAYqqN3w%2F%E6%88%AA%E5%9C%96%202021-12-09%20%E4%B8%8B%E5%8D%886.38.22.png?alt=media\&token=b47e6e82-cef8-4fe0-a476-9f01d747a927)

### Step3: Link the Login channel with the LINE official account

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FabWBw9dyD3TMYPO5q8gn%2FLINE%20login.gif?alt=media\&token=4b1a7eec-d803-4796-926d-d6a0d19303f5)

### Step 4: Change the Login Channel status from "Developing" to "Published"

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2Fh24WgLkwp9WKDthOTwzy%2Fezgif.com-apng-to-gif.gif?alt=media\&token=ed95ed42-5cd6-480f-bbe5-f1ad592fa789)

### Step 5: Create a LIFF and fill in the information in the LINE Login channel

1. Select "LIFF"
2. Click the "Add" button

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F3TePon4WZNe8HSSYSpyn%2F%E6%88%AA%E5%9C%96%202021-12-10%20%E4%B8%8A%E5%8D%8811.17.30.png?alt=media\&token=a4ed01b8-da33-49d7-94e2-35f3adbac21b)

#### **Fill in the created LIFF**

1. LIFF app name: **Omnichat Interactive Games**
2. Size: Select " **tall"**
3. Endpoint URL: <https://game.omnichat.ai>
4. Scopes: "Tick" All, and also "tick" the option below "View all"
5. Bot Link feature: Select "On" (Aggressive)
6. Open Scan QR

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FSMMP5KhtOLrZdzcIpWdR%2F%E6%88%AA%E5%9C%96%202023-03-15%20%E4%B8%8B%E5%8D%886.48.15.png?alt=media\&token=f1bee06f-7b5f-4800-9647-8c8744d6d0ec)

### Step 6: Edit the related LIFF Setting

1. Open shareTargetPicker feature

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F6Wno71WIE0GWSBIXDztA%2Fezgif.com-gif-maker.gif?alt=media\&token=865f5f10-4b1d-4b09-a49d-25af33213e3e)

2\. Click the built LIFF and enter the page

3\. Change the Endpoint URL to <mark style="color:red;">**<https://game.omnichat.ai/?liffId={li/ffId}> → fill in LIFF ID in { }**</mark>

Example: <https://game.omnichat.ai/?liffId=1655713626-ljKQMJy2>

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FUNwryzLieZ98mcL9629E%2Fezgif.com-gif-maker%20\(2\).gif?alt=media\&token=ebaf439a-5b6e-4a75-bb55-8976633a8901)

### Step 7: Go to "Channels" -> "Messenger Integration", open the "LINE Official Account Integration" -> and click "Action > Edit" > and paste the LIFF ID, then you can successfully activate the Interactive Games!

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F31ApMsIzSHMyRlHvr5t2%2F%E6%88%AA%E5%9C%96%202023-04-07%20%E4%B8%8A%E5%8D%8810.59.13.png?alt=media&amp;token=569a9044-c575-4ccc-8787-c33de1dc0998" alt=""><figcaption></figcaption></figure>

## Having Login Channel but the operator has not obtained the Channel's authorization）

Step 1: Confirm you are the administrator of the login channel, you can reconfirm in the upper right corner\
If you are an administrator already, please go to Step 5; If you are not the administrator, please follow the below steps!

Step 2: Enter Login channel

Step 3: Click "Role"

Step 4: Click the "Invite by e-mail" button

Step 5: Enter the E-mail who the colleges you want to authorize, and change The Role to Admin

Step 6: Click the "Send invitations" button

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F6dEgwFKbEq5o3ZKRAqU8%2Fezgif.com-gif-maker%20\(1\).gif?alt=media\&token=a6cc4623-bd63-45af-96fa-761cab53bcef)
