Prerequisites
- A LINE account
- Access to LINE Developers Console
Creating a LINE Channel
- Visit the LINE Developers Console
- Sign in with your LINE account
- Click “Create a new channel”
- Choose “Messaging API” as the channel type
- Fill in the required information:
- Channel name: A name for your channel
- Channel description: Brief description of your bot
- Category: Select an appropriate category
- Subcategory: Choose a relevant subcategory
- Click “Create”
Configuring Your LINE Channel
Basic Settings
- In your channel settings, go to the “Basic” tab
- Note your Channel ID and Channel Secret (you’ll need these later)
- Upload a channel icon (optional)
- Add a channel description
Messaging API Settings
- Go to the “Messaging API” tab
- Note your Channel Access Token (you’ll need this later)
- Set up your webhook URL (if needed for receiving messages)
- Enable “Use webhook” if you want to receive messages
QR Code and Add Friends
- In the “Messaging API” tab, find the QR code
- Users can scan this QR code to add your bot as a friend
- Alternatively, you can create a “Add friends” URL
Setting Up in Jinba Flow
- Go to your workspace settings in Jinba Flow
- Navigate to the “Secret” section
- Find “LINE” in the list of available credentials
- Click “Configure” or “Add New”
- Enter your LINE channel credentials:
- Channel ID: From your LINE channel’s Basic settings
- Channel Secret: From your LINE channel’s Basic settings
- Channel Access Token: From your LINE channel’s Messaging API settings
- Click “Save” to store your credentials
Webhook Configuration (Optional)
If you want to receive messages from LINE users:- In your LINE channel’s “Messaging API” settings
- Enable “Use webhook”
- Set the webhook URL to your Jinba Flow webhook endpoint
- Verify the webhook URL is accessible from LINE’s servers
Usage
Once configured, you can use LINE in your flows to:- Send text messages to users
- Send rich messages (images, videos, audio, files)
- Send location messages
- Send sticker messages
- Send template messages (buttons, carousel, etc.)
- Get user profile information
- Respond to user messages via webhook
Message Types
Text Messages
- Simple text messages
- Support for emoji and Unicode characters
Rich Messages
- Image messages: Send images with preview text
- Video messages: Send videos with preview text
- Audio messages: Send audio files
- File messages: Send any file type
Template Messages
- Button template: Text with action buttons
- Confirm template: Yes/No confirmation
- Carousel template: Multiple items with images and buttons
- Image carousel template: Multiple images with buttons