5 ขั้นตอนเริ่มต้นใช้งาน Messaging API สร้างไลน์บอต
Use the Messaging API to build bots that provide personalized experiences for your users on LINE.
5 สิ่งที่คุณสามารถทำได้ด้วย Messaging API
What you can do with the Messaging API
1.Send reply messages
2.Send push messages
3.Send various message types
4.Get user profiles
5.Join group chats
How it works
The Messaging API allows for data to be passed between the server of your bot application and the LINE Platform. When a user sends your bot a message, a webhook is triggered and the LINE Platform sends a request to your webhook URL. Your server then sends a request to the LINE Platform to respond to the user. Requests are sent over HTTPS in JSON format.
To start building a bot with the Messaging API, follow these steps:
1. Create a channel
2. Building a bot
To start building a bot using the Messaging API, you must first create a channel on the LINE Developers console.
What’s a channel?
To use the LINE platform, your application must be linked to a channel. When a channel is created, a unique channel ID is issued to identify the channel. Channels must have a name, description, and icon image
Creating a channel
Step 1: Log in to the console
Log in to the LINE Developers console with the email address and password of your LINE account.
Note: If you do not have a LINE account with a registered email address, download LINE, then go to Settings > Account to register your email address.
Step 2: Register as a developer (only on first login)
Enter your name and email address to create a developer account on the LINE Developers console.
Step 3: Create a new provider
Enter a name for the provider. The provider is the entity that offers your app. For example, you can use your own name or the name of your company.
Step 4: Create a channel
Enter the required information for your channel. “LINE” or a similar string cannot be included in the channel name.
Step 5: Confirm
Confirm that your channel was created.
You have now created a channel for your bot. Next, configure your channel to build your own bot or to deploy a sample bot.
Building a bot
Building a sample bot
3,439 total views, 4 views today