{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"LINE OA Insights インポート インテグレーション","description":"LINE OAインサイトからTreasure AIへデータをインポートする方法を解説する技術ドキュメントページです。","siteUrl":"https://docs.treasure.ai","image":"/assets/treasure-ai-social-preview.e6fefb35676f6da91c2d1bc783bd39e618e7af2b1ad3aa52a96ae69d72e700fe.b1bff462.png","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/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"line-oa-insights-インポート-インテグレーション","__idx":0},"children":["LINE OA Insights インポート インテグレーション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このTDインポートでは、LINEメッセージアカウントからTreasure Dataにデータを転送できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataの基本知識（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/quickstart"},"children":["TD Toolbelt"]},"を含む）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["LINEメッセージアカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["LINEメッセージアカウントからのチャネルアクセストークン"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"要件と制限事項","__idx":2},"children":["要件と制限事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CLIからのインポートには",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt用のRuby Gem"]},"が必要です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["LINE Message APIのレート制限は1時間あたり60リクエストです。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"チャネルアクセストークンの取得","__idx":3},"children":["チャネルアクセストークンの取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["LINEメッセージからインポートするには、チャネルアクセストークンが必要です。LINE Developers Console（長期間有効トークン）から手動で取得します："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.line.biz/console/"},"children":["LINE Developers Console"]},"にログインします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プロバイダーを選択し、使用したいMessaging APIチャネルを選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-40.4512c8a09eff5bdb9185f230afe063198895756be03584f989b7fabb12a1b90d.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Messaging APIアカウントを選択し、「Messaging API」タブに移動します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-41.19c90f2cc4eace36a5ceab22d45bf249f5eee1f5316213664c43f0d1e64bf8f8.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「チャネルアクセストークン（長期間有効）」セクションまでスクロールします。「発行」ボタンをクリックするとチャネルアクセストークンが表示されます。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-42.2499f334d4f9be8451ddf1b66e06a0b430b403efbb29b30fc91adf1c4a7e3fc6.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["トークンをコピーして安全に保管します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールからlineメッセージをインポートする","__idx":4},"children":["Treasure コンソールからLINEメッセージをインポートする"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"認証の作成","__idx":5},"children":["認証の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最初のステップは、認証情報を使用して新しい認証を作成することです。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]},"を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["チャネルアクセストークンを入力します。",{"$$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":["接続の名前を入力します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-dataへのデータ転送","__idx":6},"children":["Treasure Dataへのデータ転送"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証された接続を作成すると、自動的にAuthenticationsに移動します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["作成した接続を検索します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-45.915c5f59d6def3eaba1b3315d6559777b6540cdc8e323940f20cafd88477d051.f9f43318.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データ転送フィールドに",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source"]},"の名前を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。"," ","Source Tableダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のパラメータを編集します："," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/2026-02-09_11-36-49.98db05747b76fd29991e0313ab12588cc092ce66a7fc567f24f2e82f09c71a06.f9f43318.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必須"},"children":["必須"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$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":["はい"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込む必要があるデータを指定します。サポートされている値：",{"$$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":["TargetがMessage DeliveriesまたはFollowersの場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データインポートの開始日（yyyyMMdd形式）。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["End Date"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["いいえ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データインポートの終了日（yyyyMMdd形式）。指定しない場合は現在の日付がデフォルトとなります。"]}]},{"$$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":["いいえ"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このチェックボックスは、Targetが以下の値の場合にのみ表示されます："]},{"$$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":["前回のインポート日または最後にデータが準備完了状態になった日以降の新しいデータのみをインポートします。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request IDs"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Targetがユーザーインタラクション統計の場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インサイトデータを取得するためのリクエストIDを指定します。カンマ区切りの値。"]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択してデータ設定を定義します。"]}]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択してデータをプレビューします。"]}]},{"$$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":["データをプレビューするには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]},"を選択します。オプションで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択して次のセクションにスキップすることもできます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データの配置を定義する"]}]},{"$$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":["ストレージセクションでは、TDにデータを保存する場所の詳細を指定します："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Database — データを保存するデータベースを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Table — インポートしたデータを保存する宛先テーブル。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Method",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Append — 既存のテーブルにレコードを追加します（データが重複する可能性があることに注意してください）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Always Replace — レコードを追加する前に宛先テーブルを常にクリアします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Replace on new data — 新しいデータが見つかった場合、古いデータは新しいデータで上書きされます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp-based Partition Key — パーティションキーとして使用するカスタムタイムスタンプ列を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Storage Timezone — データベースの予想タイムゾーン。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]},"セクションでは、このクエリを実行するタイミングと頻度を選択できます："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Repeat — ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["On"]},"または",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Off"]},"を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Schedule — ドロップダウンリストには以下のオプションが用意されています：",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@daily (midnight)"]},"、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["@hourly (:00)"]},"、または",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Custom cron"]},"。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Delay Transfer — 実行時間の遅延を指定できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Scheduling Timezone — スケジューリングのタイムゾーンを選択します。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run Now"]},"を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行されたら、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]},"で転送結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-ワークフローからlineメッセージをインポートする","__idx":7},"children":["Treasure ワークフローからLINEメッセージをインポートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ワークフローを作成して実行します："]},{"$$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":["インポート用の接続詳細を含む",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["seed.yml"]},"ファイルを変更します："]},{"$$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":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"データ型"},"children":["データ型"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"必須"},"children":["必須"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$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":["はい"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込む必要があるデータを指定します。サポートされている値：",{"$$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":["Targetがmessage_deliveriesまたはfollowersの場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データインポートの開始日（yyyyMMdd形式）。"]}]},{"$$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":["いいえ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データインポートの終了日（yyyyMMdd形式）。指定しない場合は現在の日付がデフォルトとなります。"]}]},{"$$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)。デフォルトはfalse"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["いいえ"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この値は以下のtargetにのみ適用されます："]},{"$$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":["前回のインポート日または最後にデータが準備完了状態になった日以降の新しいデータのみをインポートします。"]}]}]},{"$$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":["targetがuser_interaction_statisticsの場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インサイトデータを取得するためのリクエストIDを指定します。カンマ区切りの値。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"clitoolbeltからlineメッセージをインポートする","__idx":8},"children":["CLI（Toolbelt）からLINEメッセージをインポートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD Toolbeltを使用してLINEメッセージからデータをインポートできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"前提条件-1","__idx":9},"children":["前提条件"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ruby Gemを使用して最新のTD Toolbeltをインストールします："]},{"$$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":["他のインストール方法もあります。詳細は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]},"をご覧ください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"設定ファイルの作成","__idx":10},"children":["設定ファイルの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["config.yml設定ファイルを作成します："]},{"$$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":"設定ファイルから取得するデータのプレビュー","__idx":11},"children":["設定ファイルから取得するデータのプレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定ファイルで取得するデータをプレビューできます："]},{"$$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":"スケジュール実行","__idx":12},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的なLINEインポート用に定期的なデータコネクタ実行をスケジュールできます。この機能を使用すると、ローカルデータセンターで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},"デーモンが不要になります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュールの作成","__idx":13},"children":["スケジュールの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:create"]},"コマンドを使用して新しいスケジュールを作成できます。以下のデータを指定する必要があります："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールの名前"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["cron形式のスケジュール"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データが保存されるデータベースとテーブル"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Connector設定ファイルが必要です。"]}]},{"$$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":["cronパラメータは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"の3つの特別なオプションも受け付けます。詳細は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/scheduling-jobs-using-td-console"},"children":["スケジュールされたジョブ"]},"をご覧ください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-t"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]},"オプションを使用してタイムゾーンを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]},"オプションは'Asia/Tokyo'や'America/Los_Angeles'などの拡張タイムゾーン形式のみをサポートしています。PSTやCSTなどのタイムゾーン略語は",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["サポートされておらず"]},"、予期しないスケジュールになる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"スケジュール一覧の表示","__idx":14},"children":["スケジュール一覧の表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$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":"スケジュールの設定と履歴の表示","__idx":15},"children":["スケジュールの設定と履歴の表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:show"]},"はスケジュールエントリの実行設定を表示します。"]},{"$$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"]},"はスケジュールエントリの実行履歴を表示します。個々の実行結果を調査するには、",{"$$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":"スケジュールの削除","__idx":16},"children":["スケジュールの削除"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td connector:delete"]},"はスケジュールを削除します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:delete daily_line_oa_insights_import\n"},"children":[]}]},"headings":[{"value":"LINE OA Insights インポート インテグレーション","id":"line-oa-insights-インポート-インテグレーション","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"要件と制限事項","id":"要件と制限事項","depth":2},{"value":"チャネルアクセストークンの取得","id":"チャネルアクセストークンの取得","depth":2},{"value":"Treasure コンソールからLINEメッセージをインポートする","id":"treasure-コンソールからlineメッセージをインポートする","depth":2},{"value":"認証の作成","id":"認証の作成","depth":3},{"value":"Treasure Dataへのデータ転送","id":"treasure-dataへのデータ転送","depth":3},{"value":"Treasure ワークフローからLINEメッセージをインポートする","id":"treasure-ワークフローからlineメッセージをインポートする","depth":2},{"value":"CLI（Toolbelt）からLINEメッセージをインポートする","id":"clitoolbeltからlineメッセージをインポートする","depth":2},{"value":"前提条件","id":"前提条件-1","depth":3},{"value":"設定ファイルの作成","id":"設定ファイルの作成","depth":3},{"value":"設定ファイルから取得するデータのプレビュー","id":"設定ファイルから取得するデータのプレビュー","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"スケジュールの作成","id":"スケジュールの作成","depth":4},{"value":"スケジュール一覧の表示","id":"スケジュール一覧の表示","depth":4},{"value":"スケジュールの設定と履歴の表示","id":"スケジュールの設定と履歴の表示","depth":4},{"value":"スケジュールの削除","id":"スケジュールの削除","depth":4}],"frontmatter":{"seo":{"title":"LINE OA Insights インポート インテグレーション","description":"LINE OAインサイトからTreasure AIへデータをインポートする方法を解説する技術ドキュメントページです。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/line-oa-insights-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}