When you enable the HubSpot integration, you can add LINE actions to your HubSpot workflows. Four actions are available: Send LINE message, Send LINE notification message, Update LINE rich menu, and ID linkage by form submission. This article covers what each one is for, its settings, and what you need to use it.
The four LINE actions you can use
When you add an action to a HubSpot workflow, you can choose from four LINE actions provided by Lumo.
| Action | What it does | Workflows it works in | Requirements |
|---|---|---|---|
| Send LINE message | Sends an Auto Send Message or text you enter to the LINE friend linked to the contact | Contact, deal, ticket, company, and others | HubSpot integration and the Business plan or above |
| Send LINE notification message | Sends a LINE Notification Message based on a phone number, even to customers who haven't added you as a friend yet | Contact and order | HubSpot integration and the Enterprise plan. LINE Official Accounts in Japan only |
| Update LINE rich menu | Re-evaluates the Rich Menu of the friend linked to the contact against the display target conditions in Lumo | Contact | HubSpot integration |
| ID linkage by form submission | Finds contacts for the same person by a shared value such as a member ID and merges them into one | Contact | HubSpot integration |
Action names and settings appear in Japanese when HubSpot's display language is Japanese, and in English for any other language.
Use HubSpot workflow actions when you want something that happens in HubSpot to drive LINE. Automation that starts from a reaction on the LINE side, such as a friend add or an incoming message, is built with Lumo Workflows. When you're unsure which to use, tell the Marketing Agent your goal and it will propose how to put it together.
What you need to use the actions
Once the HubSpot integration is complete, the four actions appear in the action list of your HubSpot workflows.
| Requirement | Details |
|---|---|
| HubSpot integration is complete | The integration between Lumo and HubSpot must be set up. The steps are covered in How to Set Up the HubSpot Integration |
| The LINE Official Account is integrated | The LINE Official Account you send from or update must be connected to Lumo and integrated with HubSpot |
| The contact's ID is linked | Send LINE message and Update LINE rich menu target the LINE friend linked to the contact. A contact with no linked friend is neither sent to nor updated. The linkage methods are covered in Link HubSpot Contacts and LINE Friends by ID |
| Plan | Send LINE message needs the Business plan or above. Send LINE notification message is available on the Enterprise plan. Update LINE rich menu and ID linkage by form submission work on every plan. Creating and setting up a Rich Menu needs the Starter plan or above, though (LINE Official Accounts migrated from CONNECT can do this on any plan) |
To set up an action, add an action in the HubSpot workflow editor and choose the LINE action from the list.
Send LINE message
This action sends a LINE message to the LINE friend linked to the contact. You can reach people on LINE from HubSpot triggers such as a form submission or a lifecycle stage change.
Settings
| Setting | Details |
|---|---|
| LINE Official Account | The LINE Official Account to send from. Be sure to choose one when you have several accounts integrated |
| Auto message | Choose from the Auto Send Messages you created in Lumo. The picker shows each message's name and description (or the beginning of the body when the description is empty). When you choose one, Message 1–3 below are not used |
| Message 1–3 | The text to send when you don't choose an Auto Send Message. When you fill in Message 2 and 3, they are sent after Message 1 |
| LINE user ID property | Normally leave this unset |
| List ID (legacy) | A setting from the previous mechanism. Normally not used |
When you want to choose an Auto Send Message, pick the LINE Official Account first. The options that appear depend on the account you chose. To send something other than text, such as an image or a Card Type Message, create it as an Auto Send Message in Lumo beforehand. How to create one is covered in How to Create Auto Send Messages.
Using it in deal and ticket workflows
This action works not only in contact workflows but also in deal, ticket, company, and other workflows. It automatically identifies the contact associated with the record and sends to the friend linked to that contact. If there is no associated contact, nothing is sent.
Using it in Shopify cart and order workflows
You can also use this action in workflows that start from carts and orders synced to HubSpot through HubSpot's Shopify data sync integration. Lumo identifies the contact associated with the cart or order and sends to the friend linked to that contact. Shopify-to-HubSpot sync is handled by HubSpot's Shopify integration; Lumo reads the synced cart or order and delivers the message on LINE.
You can also have Marketing Agent create the abandoned cart follow-up message by telling it "Create a LINE message for HubSpot's abandoned cart workflow." Once it's created, choose the LINE Official Account and that message in this action.
| Use case | Setup | What the customer receives |
|---|---|---|
| Abandoned cart follow-up | In a cart workflow, choose an Auto Send Message whose Card Type Message uses "Trigger products" as the data source with the "Abandoned cart follow-up" template | Product cards with the name, image, quantity, and amount of each item in the cart, plus a link to resume checkout |
| Checkout link only | Enter {{workflow.hs_cart_url}} as the URL in a standard Auto Send Message |
A link that opens that cart's checkout |
| Messages using order details | In an order workflow, insert order properties into the message as workflow. followed by the property's internal name, such as {{workflow.hs_order_name}} or {{workflow.hs_total_price}}
|
Shipping updates and similar messages with the order number, currency, and amount filled in |
This requires read permissions for carts, line items, orders, and products in the HubSpot integration. For an existing connection, add them from "Reauthorize HubSpot" under "Settings" in the HubSpot integration. Without these permissions the send fails. A cart without a checkout URL (hs_cart_url) cannot be sent. Lumo does not automatically map an order's items into product cards, and it does not write cart or order data back to HubSpot. How to build product cards is covered in Creating a Product Card (formerly EC Product Carousel).
Checking the send results
When you send an Auto Send Message, you can check who received it and the result under "Recipients" in the Auto Send Message details in Lumo. When the contact has no linked LINE friend, the send fails and stays in the recipient list as a failure.
Send LINE notification message
This action sends a LINE Notification Message based on a phone number, even to customers who haven't added you as a friend yet. You can deliver important transactional updates, such as a shipping notice, from a HubSpot workflow.
What you need to use it
| Requirement | Details |
|---|---|
| Plan | Available on the Enterprise plan |
| Region | Available for LINE Official Accounts in Japan |
| Purpose | A LINE Notification Message is a mechanism reserved for transactional notifications that pass LY Corporation's review. It can't be used for advertising or promotions |
| What to send | For the template type, prepare an Auto Send Message containing exactly one LINE notification. For the flexible type, prepare an Auto Send Message containing UX-reviewed Flex or text content |
See template setup, flexible setup, and application requirements.
Settings
| Setting | Details |
|---|---|
| Phone number (recipient) | Choose the property that holds the recipient's phone number. In an order-based workflow, choose the order's phone number property |
| LINE Official Account | The LINE Official Account to send from |
| Auto message | Select the Auto Send Message matching your approved type and purpose. This action requires an Auto Send Message |
| Message 1–3 | Not used in this action |
| Country code | When the phone number starts with 0, the leading 0 is replaced with the country code you choose. For Japanese numbers, choose "Japan (+81)" |
In an order-based workflow, the template's "Order details" (order number, total price, tracking number, and more) are filled with that order's values. The available variables are covered in Sending template-type LINE notification messages.
Checking the send results
You can check who received it and the result under "Recipients" in the Auto Send Message details. For recipients who aren't LINE friends, the recipient cell reads "Notification recipient".
Linking IDs when the notification button is tapped
Turn on "Link identity when the button is tapped" on the Auto Send Message, and a customer who taps the notification button is linked to the HubSpot contact the notification was sent for. This works for notifications sent from a contact-based workflow.
What customers and your team see
Customers tap the button, agree on the LINE screen, and go straight to the destination set on the button.
- The customer taps the notification button on a smartphone
- The LINE Login consent screen appears. Customers who aren't friends yet also see the add-friend screen
- The destination set on the button (the booking details page, for example) opens
Customers who are already friends and have already agreed to LINE Login reach the destination with almost no screens in between. When the ID can't be linked, customers don't see an error, and the destination still opens.
In Lumo and HubSpot, you'll see the following.
- The friend is linked to the HubSpot contact the notification was sent for
- The friend's timeline shows a record of the ID link made by "Notification message tap"
- The contact's "LINE User ID" property in HubSpot gets a value
When the ID linkage is established, the "Identity Linked" trigger of a Lumo Workflow fires. Choose "LINE notification message button tap" as the route, and you can automate a thank-you or a perk for just the friends linked through this route. The trigger settings are covered in Trigger Types and How to Set Them Up.
Setup steps
Each Auto Send Message has its own switch, and it's off by default.
- From the Lumo side menu, open "Automation" > "Auto-Send Messages", then open the edit screen of the Auto Send Message selected in the Send LINE notification message action
- Turn on "Link identity when the button is tapped"
- Save
You don't need to change anything on the HubSpot workflow side. If the phone number (recipient) field uses the contact's "Phone number" or "Mobile phone number" property, the phone number condition is met.
When the ID is linked
Only the first person who taps the button within 72 hours of sending is linked. This applies to notifications sent from a contact-based workflow to the contact's phone number.
| Item | Condition |
|---|---|
| Workflow type | Only notifications sent from a contact-based workflow. It doesn't work for notifications sent from workflows based on other objects, such as orders, companies, or deals |
| Phone number | The ID is linked only when the phone number the notification was sent to (the value of the phone number (recipient) field) is the same as either the "Phone number" (phone) or the "Mobile phone number" (mobilephone) of the contact it was sent for. If you chose another property and the notification went to a number that matches neither, nothing is linked |
| Time limit | Taps within 72 hours of sending count. Later taps don't link anyone and only open the destination |
| Number of people | Only the first person to tap, per notification |
| Delivery status | Only notifications whose delivery was confirmed as completed |
| Already linked | If either the friend or the contact the notification was sent for is already linked to someone else, the link isn't changed. The friend's timeline shows why nothing was linked |
| Friends you unlinked | A friend whose ID link was removed in Lumo isn't linked by a tap |
| Friend add only | Customers who add the account as a friend without tapping the button aren't linked |
| Click tracking | When click tracking is off for the message, tapping the button doesn't link IDs |
| Which notifications | It works for notifications sent after you turn the switch on. For notifications sent before that, tapping the button only opens the destination |
| Device | Taps on a smartphone count. On a PC, only the destination opens |
Things to keep in mind
Point the button to a page related to the content of the notification. The terms of LINE notification messages don't allow links whose only purpose is adding a friend or advertising.
- Require authentication before any page that shows personal information, and confirm the destination when you apply for LINE notification messages
- Customers must add the account as a friend themselves. Customers who don't add it on the add-friend screen still reach the destination
- If a customer forwards the link in the notification to someone else and that person taps it first, that person's LINE account may be linked. When you find a link you didn't intend, remove it from "Unlink identity" under "More actions" on the friend's detail screen. The steps are in Unlinking an identity
- Keep the button pointing to the page for the notification's content. When the button's destination is a Lumo ID linking URL (such as a QR Code's friend add link), linking by tap doesn't work
Update LINE rich menu
This action re-evaluates the Rich Menu of the LINE friend linked to the contact against the display target conditions in Lumo and applies the result. Use it when you want a menu switch to take effect right away at a moment you decide on the HubSpot side.
Settings
| Setting | Details |
|---|---|
| LINE Official Account | The LINE Official Account whose Rich Menu to update |
| LINE user ID property | Normally leave this unset |
How it works
You don't specify which menu to show in this action. It evaluates the display targets set on your Rich Menus in Lumo (Segment, period, day of week, and priority) and applies the menu whose conditions match to the friend. The evaluation uses the HubSpot data already synced to Lumo. When the contact has no linked LINE friend, nothing is updated.
How it relates to targeting by Segment
The targeting conditions are set on the Rich Menu side in Lumo; this action's role is to tell Lumo from the HubSpot side when to re-run the evaluation. When a Rich Menu in Lumo has a HubSpot segment (list) as a display target, a sync every 15 minutes picks up membership changes and updates the assignments right after any change. On top of that, all assignments are reviewed every hour. Use this action when you want to re-evaluate a single contact within the flow of a workflow instead of waiting for that automatic update. How to set display targets is covered in How to Create and Apply a Rich Menu.
ID linkage by form submission
This action uses a shared value such as a member ID as the key to find another contact for the same person and merge the two into one. When a contact created as a LINE friend and a contact created by a form submission or member registration exist separately, you can complete the ID linkage in one go.
Settings
| Setting | Details |
|---|---|
| Internal name of the search key property | Enter the internal name of the property whose value, on the contact enrolled in the workflow, serves as the search key (for example, member_id) |
| Internal name of the target property | Enter the internal name of the property on other contacts to search for the search key value (for example, member_id) |
| Primary contact after merge | The contact to keep after the merge. Choose from "System default", "Enrolled contact", and "Found contact" |
For the two properties, type the internal name as text, not the property's value. If you insert a property value (token) from the data panel, the value goes in and the search doesn't work. Email address and phone number can't be used as the target property.
How it works
| Situation | What happens |
|---|---|
| Another contact with the same value is found | The two contacts are merged in HubSpot. Which one is kept follows "Primary contact after merge"; with the system default, Lumo decides. After the merge, the LINE friend is tied to the contact that remains |
| No contact is found | The search key value is written to the target property of the contact enrolled in the workflow, ready to match when a contact with the same value is registered later |
| The search key value is empty | Nothing happens, and the action ends as a failure |
When the ID linkage is established, the "Identity Linked" trigger of a Lumo Workflow fires. Choose "HubSpot workflow ID linking action" as the route, and you can automate a thank-you or a perk for just the friends linked through this route. The trigger settings are covered in Trigger Types and How to Set Them Up.
Use cases
Here is an example of tying LINE friends to existing customer contacts by the member ID from your membership site.
- Send your LINE friends the URL of a HubSpot form where they enter their member ID
- When a friend submits the form, the workflow runs for that contact
- The action finds the existing customer contact with the same member ID and merges the two into one
- The LINE friend is tied to the existing customer contact and can now be used in segmented broadcasts and workflows that draw on the HubSpot customer data
When things don't work
Requirements differ by action. Check the contact-to-LINE-friend link for LINE messages and Rich Menus. LINE notification messages do not require friend addition or ID linking. Use the table below to check the settings and results.
| Symptom | What to check |
|---|---|
| The LINE message doesn't arrive | Whether a LINE friend is linked to the contact (whether the ID is linked). Check the result under "Recipients" in the Auto Send Message details |
| The action completes but no LINE message is sent | Whether the LINE Official Account is on the Business plan or above. When the plan condition isn't met, the action completes but no LINE message is sent, and the status in the action's output is plan_required
|
| Sending from a deal or ticket workflow doesn't work | Whether a contact is associated with the record |
| The LINE Notification Message can't be sent | Whether you chose an Auto Send Message, whether the phone number property has a value, whether you're on the Enterprise plan, and whether the LINE Official Account is in Japan. Also check "Recipients" in the Auto Send Message details |
| Tapping the notification button doesn't link the ID | Whether "Link identity when the button is tapped" is on for the Auto Send Message and click tracking is on. Whether the notification is sent from a contact-based workflow. Whether the phone number the notification was sent to is the same as the contact's "Phone number" or "Mobile phone number". Taps more than 72 hours after sending, taps by a second person, and notifications sent before you turned the switch on don't link anyone. If the friend or the contact is already linked to someone else, the friend's timeline shows the reason |
| The Rich Menu doesn't switch | Whether a LINE friend is linked to the contact, and whether a menu matches the display target conditions. When the condition is a HubSpot segment (list), membership changes reach Lumo only after the 15-minute sync |
| The ID linkage action fails | Whether you entered internal names in the two properties (not value tokens), whether the search key property has a value, and whether you used email address or phone number as the target property |
| The LINE actions don't appear in the action list | Whether the HubSpot integration is complete and whether the Lumo app is installed in HubSpot |
Related articles
These articles are worth checking alongside the LINE actions for HubSpot workflows.
- How to Set Up the HubSpot Integration — Steps to set up the integration
- What You Can Do with the HubSpot Integration — Overview of the integration's features
- Link HubSpot Contacts and LINE Friends by ID — How to link IDs
- How to Create Auto Send Messages — How to create the Auto Send Messages the actions send
- LINE Notification Message — How to create a LINE Notification Message and its restrictions
- How to Create and Apply a Rich Menu — Setting display targets (targeting)
- Trigger Types and How to Set Them Up — Setting up the Identity Linked trigger