Connect your LINE OA to Contacts
When your LINE OA is connected, everyone who writes to it or adds it as a friend shows up in Contacts, with their LINE messages and the pages they read on your website. You can also send them a message from their contact page.
Before you start
Section titled “Before you start”- You need to be an admin of your LINE OA, and log in to LINE with the same account you use for LINE OA Manager.
- It takes about 10 minutes. You copy three things from LINE and paste them in the portal.
- Turn on the Messaging API. In LINE OA Manager, open your OA and go to Settings → Messaging API. Choose Enable Messaging API, and pick a provider (or make one with your business name). Choose carefully: LINE doesn’t let you move the OA to another provider later. If it’s already on, go to the next step.
- Open your channel in LINE Developers. Go to LINE Developers, log in, open your provider and then the channel with your OA’s name.
- Copy the Channel ID and Channel secret from the Basic settings tab.
- Copy the access token. On the Messaging API tab, under Channel access token (long-lived), choose Issue and copy it.
- Paste all three in the portal. Go to Contacts → LINE OA settings, paste them and choose Connect. We set your OA’s webhook for you.
- Switch on the webhook. Back on the Messaging API tab in LINE Developers, switch on Use webhook. The LINE OA settings page shows On, to foxworks when it’s done.
- Keep chat on. In LINE OA Manager, Settings → Response settings, leave Chat on so you can still answer people by hand. If Auto-response is on, LINE sends its own automatic answer to each message; switch it off if you don’t want that.
If your OA’s webhook goes to another tool
Section titled “If your OA’s webhook goes to another tool”LINE lets each OA send its messages to only one place. If a chatbot or another tool already gets them, the portal shows its address before connecting. If you go ahead, that tool stops getting messages. If you need both, send us a request and we’ll find a way.
Welcome message
Section titled “Welcome message”On the LINE OA settings page you can write a welcome message. Each new friend gets it, with a link to your website, and the visits from that link show on their contact. Sending it is free. Leave it empty if you already have a greeting message in LINE OA Manager, so people don’t get two.
Alerts on your own LINE
Section titled “Alerts on your own LINE”Choose Get alerts on the LINE OA settings page. You get a code like FX-123456. Add your OA as a friend from your own LINE and send it the code. From then on, you get a message when someone you know is on your website, at most once a day for each person.
LINE Login on your contact form
Section titled “LINE Login on your contact form”With LINE Login, a visitor can tap Continue with LINE on your contact form. Their enquiry then lands on their LINE contact (with the pages they read), they don’t have to type an email, and LINE offers to add your OA as a friend. You add a second channel for this, in the same provider as your OA, so LINE gives the same person the same ID in both.
- In LINE Developers, open the same provider as your OA and choose Create a new channel → LINE Login.
- Choose the type Web app, fill in a name (your business name), a short description and your email, accept the terms and choose Create.
- On the Basic settings tab, under Linked LINE Official Account, choose Edit and pick your OA. This is what lets LINE offer your OA as a friend after the login.
- On the LINE Login tab, under Callback URL, choose Edit and enter the address shown on Contacts → LINE OA settings → LINE Login on your forms. It has the form
https://your-website/_fx/line/callback. - Publish the channel. At the top of the page, the channel is Developing: only people you added as testers can log in. Choose Developing → Publish (the channel is public from then on).
- Copy the Channel ID and Channel secret from the Basic settings tab and paste them in the portal, in LINE Login on your forms. We check them with LINE and store the secret encrypted.
- The button shows on your contact form once your website has it switched on. Ask us in a request and we’ll do it.
When someone logs in, we get their LINE name and ID, nothing else (not their email or phone). They stay logged in for one hour and only for the form: it ends when they send it.
What costs messages
Section titled “What costs messages”LINE counts the messages your OA sends to people one by one against your monthly messages (see Settings → Plan in LINE OA Manager). On foxworks these are:
- messages you send from a contact’s page
- your alerts
Answering in LINE OA Manager’s chat and the welcome message don’t count. The LINE OA settings page shows how many you’ve sent this month.
Stuck?
Section titled “Stuck?”Send us a screenshot in a request under Requests & orders and we’ll tell you where to click.