Paste the Channel ID, Channel secret,
and Channel access token into the respective fields.
Choose an environment, as applicable.
Click START.
Testing
To test your agent,
tap on the three horizontal dots on the main screen of the LINE app.
Then tap the QR code icon and scan the QR code on the settings page of your bot.
This adds your bot to the list of conversations.
For example, the following custom payload provides a LINE template message:
{"type":"template","altText":"this is a buttons template","template":{"type":"buttons","thumbnailImageUrl":"https://example.com/bot/images/image.jpg","title":"Menu","text":"Please select","actions":[{"type":"postback","label":"Buy","data":"action=buy&itemid=123"},{"type":"postback","label":"Add to cart","data":"action=add&itemid=123"},{"type":"uri","label":"View detail","uri":"http://example.com/page/123"}]}}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eDialogflow agents can be integrated as LINE bots, allowing them to communicate with end-users through the LINE platform.\u003c/p\u003e\n"],["\u003cp\u003eThe integration involves creating a LINE channel, connecting it to the Dialogflow agent, and utilizing the LINE Messaging API and Webhook for message exchange.\u003c/p\u003e\n"],["\u003cp\u003eSetting up the integration requires configuring a LINE webhook and then configuring the Dialogflow integration with the Channel ID, secret, and access token.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow supports various rich response messages for the LINE integration, including image, card, quick reply, and most custom payload messages, with the exception of flex message types.\u003c/p\u003e\n"],["\u003cp\u003eRequests and end-user data will be sent to both Google and the third party, which will be subjected to each party's respective terms of service, SLA, pricing, and quotas.\u003c/p\u003e\n"]]],[],null,["# LINE\n\nWith Dialogflow's\n[LINE](https://line.me/en/)\nintegration, you can use your Dialogflow agent as a LINE bot.\n\n\n| **Note:** When using a third party integration, requests and end-user data are sent to both Google and the third party. The terms of service, SLA, pricing, and quotas [for your agent edition](/dialogflow/docs/editions) are applicable for Google's handling of these requests. The third party's terms of service, SLA, pricing, and quotas are applicable for the third party's handling of these requests.\n\n\u003cbr /\u003e\n\nLimitations\n-----------\n\nOnly the\n[default agent language](/dialogflow/es/docs/agents-settings#lang)\nis supported by this integration.\n\nHow it works\n------------\n\nThis is how the integration works:\n\n- You create a [LINE channel](https://developers.line.biz/en/glossary/#channel).\n- You associate your Dialogflow agent with that channel, so that they communicate with each other.\n- The Dialogflow integration sends messages to the end-user by using the [LINE Messaging API](https://developers.line.biz/en/docs/messaging-api/overview/).\n- The Dialogflow integration receives messages from the end-user by acting as the [LINE Webhook](https://developers.line.biz/en/docs/messaging-api/receiving-messages/).\n\nSetup\n-----\n\nTo set up the integration:\n\n1. Follow the steps to create a LINE channel: [Getting started with the Messaging API](https://developers.line.biz/en/docs/messaging-api/getting-started/).\n2. Get the LINE webhook URL from the Dialogflow Console:\n 1. Go to the [Dialogflow ES console](https://dialogflow.cloud.google.com).\n 2. Click **Integrations** in the left sidebar menu.\n 3. Click **LINE**.\n 4. Copy the **Webhook URL** value. You will need this to configure your LINE webhook.\n3. Configure a LINE webhook:\n 1. Follow the steps to configure a LINE webhook for your channel: [LINE Receiving messages (webhooks)](https://developers.line.biz/en/docs/messaging-api/receiving-messages/).\n 2. Provide the LINE webhook configuration with the webhook URL copied above.\n 3. Copy the **Channel ID** , **Channel secret** , and **Channel access token** values. You will need these values to configure your Dialogflow integration.\n4. Configure the Dialogflow integration:\n 1. Go to the [Dialogflow ES console](https://dialogflow.cloud.google.com).\n 2. Click **Integrations** in the left sidebar menu.\n 3. Click **LINE**.\n 4. Paste the **Channel ID** , **Channel secret** , and **Channel access token** into the respective fields.\n 5. Choose an environment, as applicable.\n 6. Click **START**.\n\nTesting\n-------\n\nTo test your agent,\ntap on the three horizontal dots on the main screen of the LINE app.\nThen tap the QR code icon and scan the QR code on the settings page of your bot.\nThis adds your bot to the list of conversations.\n\nRich response messages\n----------------------\n\nThe following\n[rich response messages](/dialogflow/docs/intents-rich-messages)\nare supported.\n\n### Image responses\n\nA Dialogflow image response type is sent to LINE as a\n[LINE image message type](https://developers.line.biz/en/docs/messaging-api/message-types/#image-messages).\n\nThe supported formats and sizes are as follows:\n\n- jpeg\n- 1 MB max size\n- 240 x 240 max dimensions\n\n### Card responses\n\nA Dialogflow card response type is sent to LINE as a\n[LINE template message type](https://developers.line.biz/en/docs/messaging-api/message-types/#template-messages).\n\n### Quick reply responses\n\nA Dialogflow quick reply response type is sent to LINE as a\n[LINE template message type](https://developers.line.biz/en/docs/messaging-api/message-types/#template-messages).\n\n### Custom payload responses\n\nYou can send most\n[LINE message types](https://developers.line.biz/en/docs/messaging-api/message-types)\nwith a custom payload response.\n| **Caution:** LINE flex message types are currently not supported.\n\nFor example, the following custom payload provides a LINE template message: \n\n```carbon\n{\n \"type\": \"template\",\n \"altText\": \"this is a buttons template\",\n \"template\": {\n \"type\": \"buttons\",\n \"thumbnailImageUrl\": \"https://example.com/bot/images/image.jpg\",\n \"title\": \"Menu\",\n \"text\": \"Please select\",\n \"actions\": [\n {\n \"type\": \"postback\",\n \"label\": \"Buy\",\n \"data\": \"action=buy&itemid=123\"\n },\n {\n \"type\": \"postback\",\n \"label\": \"Add to cart\",\n \"data\": \"action=add&itemid=123\"\n },\n {\n \"type\": \"uri\",\n \"label\": \"View detail\",\n \"uri\": \"http://example.com/page/123\"\n }\n ]\n }\n}\n```"]]