Basic operations and settings

Basic operations and settings

LINE Flex Message validation when saving

  • Last updated:

When you save a LINE message containing a Flex Message in StoreCRM, its format is checked automatically to confirm that it can be sent to the LINE API. This feature lets you correct JSON and link errors when saving and reduces delivery failures.

Open the settings screen

  1. In StoreCRM, open [Messages] → [LINE].
  2. Click [Create LINE message] or edit an existing LINE message.
  3. Enter a name and message content, and add or edit a Flex Message.
  4. Click [Save].
Flex Message (JSON) open on the StoreCRM LINE message edit screen
On the LINE message creation or edit screen, select [Flex Message (JSON)] as the message type.

LINE API validation requires a valid LINE channel access token or a configured LINE channel ID and channel secret. If LINE is not configured, complete LINE setup first and confirm a test send.

What is checked when saving

  • Whether the entire LINE message data is an array
  • Whether the Flex Message content is a valid JSON object
  • Whether the Flex Message structure conforms to LINE specifications
  • Whether URLs in URI actions, images, and other components are non-empty and use a supported format
  • Whether the LINE API accepts the message after template tags are replaced with sample validation values

URI actions support http:, ,https:, ,line:, ,tel:, ,mailto: . For component URLs such as images, url must use http: or https: .javascript: and URLs without a scheme are not supported.

Flex Message JSON edit tab and live preview on the right
In the [JSON] tab, edit the Flex Message structure and check its appearance in the live preview on the right.

Use template tags in URLs

During save validation, StoreCRM template tags that are replaced at delivery time are substituted with safe sample values.[customer_name] is a display tag. Use separate tags intended for URLs.

TagsUsage
[tracking_number]This outputs display text such as “Tracking number: 12345.” Do not use it as a URL parameter.
[tracking_number_raw]This outputs only the tracking number. Use it when inserting the tracking number into a URL such as a shipment tracking link.
Flex Message JSON URL and Tracking number (number only) in the template tag list
To insert a tracking number in a URL, copy [Tracking number (number only)] from the template tag list.

If an error appears when saving

  1. Review the displayed error. Flex Message format errors may include system details.
  2. Confirm that the Flex Message JSON is a valid JSON object.
  3. Check the structure with LINE Flex Message Simulator.
  4. Check URI actions and image URLs for empty values, unsupported schemes, and spaces.
  5. If a display tag is used in a URL, replace it with a URL-specific tag.
  6. After making corrections, click [Save] again and confirm the completion message and navigation to the details screen.
LINE API Flex Message format error displayed on the save screen
If a format error appears when saving, use the system details to correct the JSON or links.

If an invalid link is found during a test send

Even a message that was saved successfully can produce an empty URL or unsupported scheme after actual customer or order data is inserted into template tags. During a test send, StoreCRM validates the final Flex Message immediately before delivery. If an invalid link or structure is found, delivery stops and is shown as failed.

Invalid link error displayed during a LINE message test send
If a link is invalid after actual data is inserted, the test send stops and displays the error.

Review the delivery failure, correct the relevant links, template tags, and Flex Message structure, save the message, and run another test send under the same conditions.

Distinguish LINE test sends from normal deliveries

For a LINE test send, “【テスト送信・開始】” and “【テスト送信・終了】” are sent as separate messages before and after the content. “【テスト送信・失敗】” may appear when the content cannot be sent. These labels are added only to test sends and do not appear in normal deliveries.

Use product and collection slots

In a LINE Flex Message, you can configure slots that are filled with products or collections at delivery time. A slot can use a fixed product or collection, or a product or collection supplied by a scenario or Campaign Automation.

StoreCRM validates the slots, links, and Flex Message structure when the message is saved and test-sent. In the preview, tapping an empty area without a configured link does not navigate anywhere. If a save error appears, check the slot source and URL.

Related pages

TOP
en_USEnglish