{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Integrations","type":"markdown"},"seo":{"title":"LINE OA Insights Import Integration","description":"Import LINE OA Insights data into Treasure AI with this guide. Learn how to obtain a Channel Access Token and transfer message account data using TD Toolbelt.","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"line-oa-insights-import-integration","__idx":0},"children":["LINE OA Insights Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This TD import allows you to transfer data from your LINE message account to Treasure Data."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Basic knowledge of Treasure Data, including ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/quickstart"},"children":["TD Toolbelt"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A LINE message account"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Channel Access Token from your LINE message account"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"requirements-and-limitations","__idx":2},"children":["Requirements and Limitations"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Importing from the CLI requires the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Ruby Gem for TD Toolbelt"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["LINE Message API rate limit is 60 requests per hour."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"obtain-channel-access-token","__idx":3},"children":["Obtain Channel Access Token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To import from LINE Message, you will need to have a Channel Access Token. Manually obtain it via the LINE Developers Console (Long-Lived Token):"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Log in to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.line.biz/console/"},"children":["LINE Developers Console"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select your provider and then the Messaging API channel you want to use."," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-40.4512c8a09eff5bdb9185f230afe063198895756be03584f989b7fabb12a1b90d.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Choose the Messaging API account then go to the \"Messaging API\" tab."," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-41.19c90f2cc4eace36a5ceab22d45bf249f5eee1f5316213664c43f0d1e64bf8f8.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Scroll down to the \"Channel access token (long-lived)\" section. Click the \"Issue\" button. The channel access token will be displayed."," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-42.2499f334d4f9be8451ddf1b66e06a0b430b403efbb29b30fc91adf1c4a7e3fc6.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Copy the token and store it securely."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"import-from-line-message-via-treasure-console","__idx":4},"children":["Import from LINE Message via Treasure Console"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-authentication","__idx":5},"children":["Create Authentication"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your first step is to create a new authentication with your credential."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure Console"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Search for and select LINE OA Insights."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-43.b87969bb583337d8e00351b8e0b4be160f4738402f8eada1eefcdc1ab0d20d9a.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Type your channel access token. Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-44.eb185bd31a04fd5ea9970a56896ffd35275616b7e3b3a46d6ee655bec3ec85e0.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter a name for your connection. Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"transfer-your-data-to-treasure-data","__idx":6},"children":["Transfer Your Data to Treasure Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After creating the authenticated connection, you are automatically taken to Authentications."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Search for the connection you created."," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-45.915c5f59d6def3eaba1b3315d6559777b6540cdc8e323940f20cafd88477d051.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Type a name for your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]}," in the Data Transfer field."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"."," ","The Source Table dialog opens."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Edit the following parameters:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-49.98db05747b76fd29991e0313ab12588cc092ce66a7fc567f24f2e82f09c71a06.f9f43318.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following table describes the parameters for configuring a source table:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mandatory"},"children":["Mandatory"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify which data you need to ingest. Supported values:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Message Deliveries"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Followers"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Demographics"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["User Interaction Statistics"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Start Date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes if Target is Message Deliveries or Followers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Start date for data import in yyyyMMdd format."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End Date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End date for data import in yyyyMMdd format. Defaults to current date if not specified."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Incremental"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This checkbox is only visible if the Target is one of these values:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Message Deliveries"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Followers"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Only imports new data since the last import date or the last date for which data is in ready status."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request IDs"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes if Target is User Interaction Statistics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify request IDs to fetch insights data. Comma-separated values."]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," to define Data Settings."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-47.0079204c964f9a959f8efad3a000d284ff6c1cf0cbbc321f2c4c03096710fbbb.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," to preview your data."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-46.4163f11ef6b22aeb05e639cdd2619198ed7efb08fb856729021f64c1e3b5859c.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["To preview your data, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]},". Optionally, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," to skip to the next section."]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Define Your Data Placement"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-48.28d883dc00fe939750fef2839785ea688d2116aeb27de48e1d5397b39f6fe5d9.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the Storage section, specify details for where you want the data to reside in TD:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Database — Select the database where you want to save your data."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Table — The destination table where you want to store your imported data."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Method",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Append — Add records to your existing table. (Be aware that data may be duplicated.)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Always Replace — Always clear your destination table before adding records."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Replace on new data — If new data is found, then old data will be overwritten by the new data."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp-based Partition Key — Select your custom timestamp column used as the partition key."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Storage Timezone — The expected timezone for your database."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," section, you can choose when and how often you want to run this query:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Repeat — Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Schedule — The dropdown list provides these options: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily (midnight)"]},", ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly (:00)"]},", or ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Custom cron"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Delay Transfer — You can specify a delay to the execution time."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Scheduling Timezone — Select the timezone for scheduling."]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After your transfer has run, you can see the results of your transfer in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"import-from-line-message-via-treasure-workflow","__idx":7},"children":["Import from LINE Message via Treasure Workflow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create and run a workflow:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"_export:\n  td:\n    database: workflow_line_oa_insights\n    table: line_oa_insights\n+import_from_line_oa_insights:\n  td_load>: imports/seed.yml\n  database: ${td.database}\n  table: ${td.table}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Modify the ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["seed.yml"]}," file with your connection details for the import:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: line_oa_insights\n  channel_access_token: {your_channel_access_token}\n  target: message_deliveries\n  start_date: 20251101\n  end_date: 20260105\n  incremental: true\nout:\n  mode: append\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Data Type"},"children":["Data Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mandatory"},"children":["Mandatory"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["target"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify which data you need to ingest. Supported values:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["message_deliveries"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["followers"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["demographics"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["user_interaction_statistics"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["start_date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes if Target is message_deliveries or followers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Start date for data import in yyyyMMdd format."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["end_date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End date for data import in yyyyMMdd format. Defaults to current date if not specified."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["incremental"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["boolean (true/false). Default is false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This value only applies for targets:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["message_deliveries"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["followers"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Only imports new data since the last date import or the last date that data is in ready status."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["request_ids"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes if target is user_interaction_statistics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Specify request IDs to fetch insights data. Comma-separated values."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"import-from-line-message-via-cli-toolbelt","__idx":8},"children":["Import from LINE Message via CLI (Toolbelt)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can import data from LINE Message using the TD Toolbelt."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"prerequisites-1","__idx":9},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install the latest TD Toolbelt using Ruby Gem:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ gem install td\n$ td --version\n0.16.10\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["There are other install methods. For more information, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-config-file","__idx":10},"children":["Create Config File"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a config.yml configuration file:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n    type: line_oa_insights\n    channel_access_token: {your_channel_access_token}\n    target: message_deliveries\n    start_date: 20251101\n    end_date: 20260105\n    incremental: true\nout:\n  ...........\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"preview-data-coming-in-from-config-file","__idx":11},"children":["Preview Data Coming In from Config File"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can preview the data your config file will pull in:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview config.yml\n\n+-----------+-----------------------+-------------------------+-------------------------+\n| id:string |           name:string |          created:string |          updated:string |\n+-----------+-----------------------+-------------------------+-------------------------+\n|    SPg3aL |      chrome_line_name | 2021-08-30 05:35:46 UTC | 2021-08-30 05:35:46 UTC |\n|    QPg3zL | 100_w_phone_line_name | 2021-08-27 23:49:56 UTC | 2021-08-27 23:49:56 UTC |\n+-----------+-----------------------+-------------------------+-------------------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"scheduled-execution","__idx":12},"children":["Scheduled Execution"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can schedule periodic data connector execution for periodic LINE import. By using this feature, you no longer need a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]}," daemon on your local data center."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"create-the-schedule","__idx":13},"children":["Create the Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A new schedule can be created using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:create"]}," command. The following data needs to be specified:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Name of the schedule"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The cron-style schedule"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The database and table where your data will be stored"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The Data Connector configuration file is required."]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n  daily_line_oa_insights_import \\\n  \"10 0 * * *\" \\\n  sample_db \\\n  sample_table \\\n  config.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The cron parameter also accepts three special options: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},". For more details, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/scheduling-jobs-using-td-console"},"children":["Scheduled Jobs"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["By default, the schedule is set up in the UTC timezone. You can set the schedule in a timezone using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-t"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]}," option. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]}," option supports only extended timezone formats like 'Asia/Tokyo', 'America/Los_Angeles', etc. Timezone abbreviations like PST and CST are ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["not"]}," supported and may lead to unexpected schedules."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"list-the-schedules","__idx":14},"children":["List the Schedules"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can see the list of currently scheduled entries by entering ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:list"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:list\n  +------------------------------+------------+----------+-------+-----------------+--------------+\n  | Name                         | Cron       | Timezone | Delay | Database        | Table        |\n  +------------------------------+------------+----------+-------+-----------------+--------------+\n  |daily_line_oa_insights_import | 10 0 * * * | UTC      | 0     | sample_database | sample_table |\n  +------------------------------+------------+----------+-------+-----------------+--------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"show-the-setting-and-history-of-schedules","__idx":15},"children":["Show the Setting and History of Schedules"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:show"]}," shows the execution setting of a schedule entry."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:show daily_line_oa_insights_import\n  Name     : daily_line_oa_insights_import\n  Cron     : 10 0 * * *\n  Timezone : UTC\n  Delay    : 0\n  Database : sample_db\n  Table    : sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:history"]}," shows the execution history of a schedule entry. To investigate the results of each individual execution, use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td job:show jobid"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"  | 577914 | success | 20000   | sample_db | sample_table | 0        | 2015-04-16 00:10:03 +0000 | 152      |\n  | 577872 | success | 20000   | sample_db | sample_table | 0        | 2015-04-15 00:10:04 +0000 | 163      |\n  | 577810 | success | 20000   | sample_db | sample_table | 0        | 2015-04-14 00:10:04 +0000 | 164      |\n  | 577766 | success | 20000   | sample_db | sample_table | 0        | 2015-04-13 00:10:04 +0000 | 155      |\n  | 577710 | success | 20000   | sample_db | sample_table | 0        | 2015-04-12 00:10:05 +0000 | 156      |\n  | 577610 | success | 20000   | sample_db | sample_table | 0        | 2015-04-11 00:10:04 +0000 | 157      |\n  +--------+---------+---------+-----------+--------------+----------+---------------------------+----------+\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"delete-the-schedule","__idx":16},"children":["Delete the Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:delete"]}," removes the schedule."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:delete daily_line_oa_insights_import\n"},"children":[]}]},"headings":[{"value":"LINE OA Insights Import Integration","id":"line-oa-insights-import-integration","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Requirements and Limitations","id":"requirements-and-limitations","depth":2},{"value":"Obtain Channel Access Token","id":"obtain-channel-access-token","depth":2},{"value":"Import from LINE Message via Treasure Console","id":"import-from-line-message-via-treasure-console","depth":2},{"value":"Create Authentication","id":"create-authentication","depth":3},{"value":"Transfer Your Data to Treasure Data","id":"transfer-your-data-to-treasure-data","depth":3},{"value":"Import from LINE Message via Treasure Workflow","id":"import-from-line-message-via-treasure-workflow","depth":2},{"value":"Import from LINE Message via CLI (Toolbelt)","id":"import-from-line-message-via-cli-toolbelt","depth":2},{"value":"Prerequisites","id":"prerequisites-1","depth":3},{"value":"Create Config File","id":"create-config-file","depth":3},{"value":"Preview Data Coming In from Config File","id":"preview-data-coming-in-from-config-file","depth":3},{"value":"Scheduled Execution","id":"scheduled-execution","depth":3},{"value":"Create the Schedule","id":"create-the-schedule","depth":4},{"value":"List the Schedules","id":"list-the-schedules","depth":4},{"value":"Show the Setting and History of Schedules","id":"show-the-setting-and-history-of-schedules","depth":4},{"value":"Delete the Schedule","id":"delete-the-schedule","depth":4}],"frontmatter":{"seo":{"title":"LINE OA Insights Import Integration","description":"Import LINE OA Insights data into Treasure AI with this guide. Learn how to obtain a Channel Access Token and transfer message account data using TD Toolbelt."}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/int/line-oa-insights-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}