How to use Claude via Line Chatbot
Claude is an AI developed by Anthropic, notable for its comprehensive knowledge, in-depth data analysis, multilingual communication including Thai, problem-solving abilities, content creation, and coding skills. Implementing Claude as a Line Chatbot for Thai users is highly suitable because Claude excels in using the Thai language, with natural word usage and more appropriate linguistic patterns compared to other AI. This allows us to easily have an intelligent assistant available through Line.
Make.com
The main tool we’ll use is Make.com, a website that helps with various automation by connecting different services together into workflows, reducing user work. Importantly, users do not need coding knowledge to use it smoothly.
Line Chatbot
Line Chatbot allows us to integrate other APIs to work behind the scenes in Line Chat. We’ll use Make to extract text from Line and send it as a prompt to Claude, generate a response, and send it back to Line. Line acts as a UI for inputting information without needing to visit the website. With this setup, you have an easy-to-use Claude by simply adding a friend and chatting. For creating a Line Chatbot and using its API for automation, you can follow the guide here <How to Create a Line OA and Connect it to an API>
Getting API from Claude
To create a Line Chatbot connected to Claude, we need to request an API from Claude to enable the connection between Line chat and Claude. The process of requesting the API simply involves creating an account and logging in at https://console.anthropic.com/login

After logging in, on the main page we can immediately click on “Get API keys”.

You can click “Create Key”, set a name, and select a Workspace. Just like that, you can obtain the API key for further use.
Steps for Automation
- Go to https://www.make.com/ log in or create an account to use the service.

- After logging in, you’ll land on the main page. Click Create a new scenario to create an automation flow.

- On this page, you can connect events from various services that support Make.com

- The flow for creating the Line Chatbot involves extracting text from Line, sending it as a prompt to Claude, and sending back the reply message.

- For setting up Line: Watch Event, click Add, name the connection, and go to the Line developer link: Message API https://developers.line.biz/console to get the Access Token from Line <How to Create a Line OA and Connect it to an API> and fill it in the Channel Access Token.

- Set a variable to extract text from the Line chat to use as a prompt on Claude.

- In the Claude section, select Create Prompt, enter your API Key, name it on Make,

- Choose the Claude model, and set the max tokens

- Set up the prompt to have Claude respond to user queries.

- Finally, for Line: Send Reply Message, select the response from Claude to send back to Line.

With these steps, you’ll have a Line Chatbot connected to Claude that can answer questions directly via chat.
Additionally, you can connect the Line Chatbot to other AIs like Llama, ChatGPT, or DALL-E. You can subscribe to receive notifications for new blogs via the form below.
Subscribe to get great articles about data
[hubspot type=”form” portal=”47406981″ id=”244b28eb-5322-4f57-80ff-1745ac75313c”]











