Creation at: 2024-11-24 | Last modified at: 2024-12-31 | 2 min read
This article explains how to connect two LINE chatbots using the sub-scenario feature. With this approach, you can make your business processes more flexible and complete. We will cover implementation methods, setup steps, and key considerations.
Connecting two LINE chatbots offers several benefits:
The sub-scenario feature temporarily pauses the current scenario and calls other HTTP methods. This method is similar to the integration of native LINE customer service previously discussed.
{{Utils.encrypt('xxx')}} to generate the encryption key and copy it.
If you’re unsure how to find your LINE secret, refer to the guide: Setting Up LINE Webhook.
In the resource node, configure the following:
x-line-signature value using this format:
{{Utils.generateSignature('{"events":['+data.conversation._message.raw_event+']}',Utils.decrypt('Your Encrypted Bot Key'),'HMACSHA256')}}
events[0] in Body Params.{"events":[{}]} as the Payload.
You need to set up two main processes:
Transfer Process:

Current Process:

In the sub-scenario configuration:
transfer_webhook scenario node.sub_transfer (customizable).[wake_up].
The following image shows the user interface before and after switching between bots. Users can click the “Back” button to return to the first chatbot:

follow and unfollow are not forwarded.Connecting two LINE chatbots significantly enhances process flexibility and creates a more comprehensive service. Using sub-scenarios, you can easily implement seamless transitions between chatbots, improving the user experience. Be mindful of the limitations and configuration requirements to ensure proper system operation during implementation.