
Prerequisites
- Access to LINE Developer Console.
Restrictions
- The LINE Messaging API requires you to follow rules that might block some messages. Check your Node settings with the Line Messaging API requirements to ensure all messages are delivered.
Generic endpoint settings
Override snapshot connections
If you activate the Override Snapshot Connections toggle, the endpoint overrides the connections in the snapshot with connections from the project. If only the snapshot has a connection, the connection isn’t overridden. If necessary, you need to update such connections manually. To override the connection of the agent in production, you can:- Make the necessary changes in a staging environment, create a snapshot of the same agent, and select the snapshot in the endpoint settings. Deactivate the Override Snapshot Connections toggle.
- Import connections from another agent using a package. Activate the Override Snapshot Connections toggle.
Mocking
In the Advanced Settings section, you can toggle on the Enable Mocking setting to activate mocking for the endpoint. Mocking lets you change node behaviors and test how they perform through the endpoint without changing the original node settings. Make sure that you also activate mocking at the node level.Additional endpoint settings
You can use the following additional settings to customize the endpoint:- NLU connectors
- Data protection & analytics
- Transformer functions
- Real-time translation
- Session management
- Copilot
- Inject and Notify
Endpoint-specific settings
How to set up
1. Create a LINE messaging API channel
1. Create a LINE messaging API channel
- Log in to the LINE Developers Console.
- Create a new provider (if needed).
- Create a new Messaging API channel under that provider.
- Copy the values from the Channel Secret and Channel Access Token fields for later use.
2. Create a LINE endpoint
2. Create a LINE endpoint
- In the left-side menu of your Project, click Deploy > Endpoints.
- On the Endpoints page, click + New Endpoint.
- In the New Endpoint section, do the following:
- Select the Line Endpoint type.
- Specify a unique name.
- Select a Flow from the list. Save changes.
- Go to the Configuration Information section and copy the URL from the Endpoint URL field.
3. Configure the webhook in LINE
3. Configure the webhook in LINE
- Go back to the LINE Developers Console.
- Open your Messaging API channel settings.
- Find the Webhook URL field and paste the Cognigy Endpoint URL you copied.
- Enable the webhook by toggling the Use webhook switch. Test the webhook.
4. Complete the endpoint configuration
4. Complete the endpoint configuration
- In the Cognigy interface, open the LINE Endpoint configuration.
- Fill in the Channel Secret and Channel Access Token fields. Save changes.