FIRST LINE 企業級客服系統
🫱 官方網站🔥 最新消息
  • ❤️關於 FIRST LINE
    • 🥰客服中心
    • 📔更新日誌
      • 🐍2025
      • ☎️電話管理系統
      • 🍱Archive
        • 🐲2024
        • 🐰2023
        • 🐯2022
        • 🐮2021
        • 🐭2020
  • 指南與解答
    • 🚀指南
      • 🤖打造專屬聊天機器人
      • 🧠FIRST LINE AI
      • 🏗️管理者系統建置
      • 👋客服人員:訊息服務
      • 📥服務台:解決與紀錄客戶問題
      • 🔃交談分派的運作模式
      • 💬3 種 WhatsApp 帳號種類大解析!
    • 📔名詞解釋
    • ❓系統疑難
      • ⚠️提示或告警訊息
      • 📶網路離線提醒
      • 🌎支援的瀏覽器
      • 🪠清除瀏覽器快取
  • 功能教學
    • 💬管道
      • 💬即時聊天
        • 疑難雜症
        • 客戶身份驗證
        • 安裝範例
          • 嵌入至 LINE 內服務客戶
          • 安裝於 SHOPLINE 內
          • 安裝於 Shopify 內
      • 💬LINE 官方帳號
        • 如何啟用 Messaging API
        • LINE 訊息費用怎麼算
        • LINE Developer 相關
      • 💬Facebook Messenger
        • 疑難雜症
        • 錯誤代碼 #2022
      • 💬Instagram
      • 💬微信公眾號
      • 💬WhatsApp (Cloud API)
        • 疑難雜症
      • 💬WhatsApp (Twilio)
      • 💬Telegram
      • 💬Viber
      • 📮電子信箱
        • 電子郵件分隔文本
        • 電子郵件附件
        • Gmail 串接測試
      • 📱簡訊
        • Twilio
        • 三竹簡訊
      • ☎️電話
        • ❓疑難雜症
        • 👨‍💻調整或分配分機給專員
        • 📕通話時服務紀錄沒有建立
        • ⤴️轉接與三方通話
        • 😃座席狀態
        • ☎️電話 SIP 代碼
        • 📊通話資訊
      • 🏪線上下通路
    • 📈儀錶板
      • 📊服務水平
      • ☎️電話
      • ☎️專員電話即時狀態
      • 😃社群媒體好友數
      • 📈訊息統計
      • 💬交談佇列
    • 😀客戶關係管理
      • 😀客戶
        • 🔃客戶合併
      • 🏢公司
      • ⬇️匯入客戶
      • 匯入自訂表格
      • 🤝服務紀錄
        • 💬交談紀錄
      • 🔖服務結果
      • ✏️服務原因
      • 自訂欄位
      • 資料匯出
      • 電話紀錄
    • 🤖聊天機器人
      • 📒交談腳本
        • ❓疑難雜症
        • 🚀功能詳解
          • 🧠FIRST LINE AI
          • 📃模組腳本
          • 🔜分派權重
          • 📒事件紀錄
          • 📔草稿與發佈
          • 🗂️輪播訊息
          • 🔘按鈕行為
        • 🎬情境範例
          • 串接 ChatGPT
          • 搜尋與回覆知識庫文章
          • 緊急信件轉派
          • 封鎖名單
          • Webhook 整合指南
          • 如何透過 API 溝通
        • 📊統計數字
        • 從即時聊天 URL 添加數據
      • 😀滿意度調查
      • 🧠AI 訓練資源
      • 🕐營業時間
      • 🤖自動回應
        • 關鍵字回應
    • 💡知識庫
      • 幫助中心
        • 擴充自訂義 HTML
      • 聊天機器人
    • 🎟️工單
      • 工單範本
      • 關注工單
      • 透過電子信箱發送
      • 狀態細項
    • 🛍️行銷
      • 🛍️產品目錄
      • 📢分眾訊息
        • 自動化活動
      • 🎡LINE 圖文選單
      • 📃貼文自動回覆
      • 😁對話角色
      • 🎟️優惠卷
      • 🔗追蹤連結
    • 🔌整合
      • 🚗自動化
        • 範例:發送 LINE 訊息
        • 範例:會員同步
        • 範例:發送 Teams 通知
      • ⛓️Webhook 腳本
    • 📃報表
      • ☎️電話
        • 專員通話效率
        • 通話紀錄報表
        • ACD 號碼分析
      • 服務紀錄明細與樞紐
      • 專員服務效率
      • 訊息管道樞紐
    • ⚒️輔助工具
      • 管道整合
      • 信件範本
      • 對話腳本
      • 訊息範本
    • ⚙️系統設定
      • 🏢企業
        • 🏢系統設定
        • 🧑‍🤝‍🧑部門
        • 💰帳務總覽
        • 🔥IP 允許清單
        • 組別
        • 業主
        • 🗺️地址
          • 縣市
          • 行政區域
          • 國家
        • 🔐權限
      • 😀客戶
        • 客戶分派
      • 🤝服務紀錄
        • 服務原因
      • 🎙️員工
        • 服務狀態
        • 更改或忘記密碼
      • 🗄️檔案管理
      • 💪技能
      • 👜職位
      • 💬開場白與話術
    • 🚀其他資料
      • 🔵Fancy 點數
      • 👨‍💻模板語法
      • 💬交談狀態
      • 🔍全域搜尋
      • 👨‍💻交談腳本變數
      • 📄資料欄位類型
      • 🌐IP 與網域清單
      • 💬各管道訊息類型支援度
    • ✊合作夥伴
      • 📞電話疑難雜症
      • 🎛️其他相關設定
  • 開發文件
    • API 說明
      • 請求方式說明
      • 回應物件資料
      • 😀客戶
      • 🔖客戶標籤
      • 🏢公司
      • ⬇️客戶匯入排程
      • ⬇️客戶自訂表格匯入排程
      • 📄自訂欄位主分類
      • 📄自訂欄位
      • 📄自訂表格
      • ☎️電話號碼
      • 🌎國家、縣市及區域
      • 🏠地址
      • 📧電子信箱
      • 🎫工單
      • 💬服務紀錄
      • 😃滿意度調查
      • 🛍️產品
      • 📄訂單
      • 📦訂單品項
    • Advanced
      • 透過 Hash 值取得 Text-Call ID
      • 透過 Text-Call ID 發送訊息
      • 搜尋聯絡人資料(Partner Limit)
      • Push (Partner Limit)
    • 即時聊天 Javascript API
Powered by GitBook
On this page
  • 新增
  • Request params
  • Response
  • 列表
  • Http Request
  • Response
  • 檢視
  • Http Request
  • Response
  • 範本列表
  • Http Request
  • Query Parameters
  • Response
  • 範本檢視
  • Http Request
  • URL Parameters
  • Response
  1. 開發文件
  2. API 說明

客戶匯入排程

你可以透過指定存在的「客戶匯入範本」新增相關排程,排程將依據指定時間、檔案等資訊進行匯入。而同一時間為避免資料衝突,若有相同時段排程,將依據執行匯入。

新增

POST https://{API_HOST}/api/v1/entity-import-task
curl -X POST
    '{"recipe_id":5,"has_header":0,"description":"test upload"}'
    -H "Content-Type: application/json"
    -F file=@/home/user/import.csv
    "https://{API_HOST}/api/v1/entity-import-task"

Request params

Parameter

Required

Default

Type

Description

recipe_id

true

NULL

Number

欲使用的匯入範本 id

has_header

false

false

Boolean

是否忽略第一行表頭

description

false

NULL

String

排程說明

file

true

NULL

binary

上傳匯入檔案,最高上傳檔案限制 100MB 以下,支援 csv、xls 格式。

Response

Property

Type

Description

data

Object

{
    "data": {
        "id": 2,
        "has_header": false,
        "file": "entity-import/1615362223-import.csv",
        "size": 50,
        "total_amount": 3,
        "description": "dddd",
        "status": 2,
        "current_sheet_index": 1,
        "current_row_index": 3,
        "job_turns": 1,
        "executed_start_at": "2021-03-10 15:43:44",
        "executed_end_at": "2021-03-10 15:43:44",
        "recipe_id": 1,
        "creater_id": 1,
        "created_at": "2021-03-10 15:43:43",
        "updated_at": "2021-03-10 15:43:44",
        "error": null,
        "restart_at": null,
        "stop_at": null,
        "recipe": {
            "id": 1,
            "name": "ccc",
            "description": null,
            "headers": [
                {
                    "value": "contacts.first_name"
                },
                {
                    "value": "contacts.membership_no",
                    "text": "Customer Number"
                },
                {
                    "value": "phone_numbers.number",
                    "set_id": 1
                },
                {
                    "value": "email_contacts.address",
                    "set_id": 1
                }
            ],
            "unique_columns": [
                "phone_numbers.number",
                "email_contacts.address"
            ],
            "creater_id": 1,
            "created_at": "2021-03-10T07:38:52.000000Z",
            "updated_at": "2021-05-19T12:18:49.000000Z",
            "importable_type": "App\\Contact"
        }
    }
}

列表

Http Request

GET https://{API_HOST}/api/v1/entity-import-task

curl -X GET
    -H "Content-Type: application/json"
    "https://{API_HOST}/api/v1/entity-import-task?per_page=15&page=1"

Parameter

Required

Default

Type

Description

page

false

1

Number

目前在第幾頁

per_page

false

15

Number

每頁呈現多少筆

Response

Property

Type

Description

data

Array of objects

匯入任務

meta

Object

頁籤物件

    "data": [
        {
            "id": 4,
            "has_header": false,
            "file": "entity-import/1621426602-import.csv",
            "size": 49,
            "total_amount": 1,
            "description": "null",
            "status": 2,
            "current_sheet_index": 1,
            "current_row_index": 1,
            "job_turns": 1,
            "executed_start_at": "2021-05-19 20:16:43",
            "executed_end_at": "2021-05-19 20:16:44",
            "recipe_id": 1,
            "creater_id": 1,
            "created_at": "2021-05-19 20:16:42",
            "updated_at": "2021-05-19 20:16:44",
            "error": null,
            "restart_at": null,
            "stop_at": null,
            "recipe": {
                "id": 1,
                "name": "ccc",
                "description": null,
                "headers": [
                    {
                        "value": "contacts.first_name"
                    },
                    {
                        "value": "contacts.membership_no",
                        "text": "Customer Number"
                    },
                    {
                        "value": "phone_numbers.number",
                        "set_id": 1
                    },
                    {
                        "value": "email_contacts.address",
                        "set_id": 1
                    }
                ],
                "unique_columns": [
                    "phone_numbers.number",
                    "email_contacts.address"
                ],
                "creater_id": 1,
                "created_at": "2021-03-10T07:38:52.000000Z",
                "updated_at": "2021-05-19T12:18:49.000000Z",
                "importable_type": "App\\Contact"
            }
        },
        {
            "id": 3,
            "has_header": false,
            "file": "entity-import/1621426576-import.csv",
            "size": 49,
            "total_amount": 1,
            "description": "null",
            "status": 2,
            "current_sheet_index": 1,
            "current_row_index": 1,
            "job_turns": 1,
            "executed_start_at": "2021-05-19 20:16:19",
            "executed_end_at": "2021-05-19 20:16:19",
            "recipe_id": 1,
            "creater_id": 1,
            "created_at": "2021-05-19 20:16:16",
            "updated_at": "2021-05-19 20:16:19",
            "error": null,
            "restart_at": null,
            "stop_at": null,
            "recipe": {
                "id": 1,
                "name": "ccc",
                "description": null,
                "headers": [
                    {
                        "value": "contacts.first_name"
                    },
                    {
                        "value": "contacts.membership_no",
                        "text": "Customer Number"
                    },
                    {
                        "value": "phone_numbers.number",
                        "set_id": 1
                    },
                    {
                        "value": "email_contacts.address",
                        "set_id": 1
                    }
                ],
                "unique_columns": [
                    "phone_numbers.number",
                    "email_contacts.address"
                ],
                "creater_id": 1,
                "created_at": "2021-03-10T07:38:52.000000Z",
                "updated_at": "2021-05-19T12:18:49.000000Z",
                "importable_type": "App\\Contact"
            }
        },
        {
            "id": 2,
            "has_header": false,
            "file": "entity-import/1615362223-import.csv",
            "size": 50,
            "total_amount": 3,
            "description": "dddd",
            "status": 2,
            "current_sheet_index": 1,
            "current_row_index": 3,
            "job_turns": 1,
            "executed_start_at": "2021-03-10 15:43:44",
            "executed_end_at": "2021-03-10 15:43:44",
            "recipe_id": 1,
            "creater_id": 1,
            "created_at": "2021-03-10 15:43:43",
            "updated_at": "2021-03-10 15:43:44",
            "error": null,
            "restart_at": null,
            "stop_at": null,
            "recipe": {
                "id": 1,
                "name": "ccc",
                "description": null,
                "headers": [
                    {
                        "value": "contacts.first_name"
                    },
                    {
                        "value": "contacts.membership_no",
                        "text": "Customer Number"
                    },
                    {
                        "value": "phone_numbers.number",
                        "set_id": 1
                    },
                    {
                        "value": "email_contacts.address",
                        "set_id": 1
                    }
                ],
                "unique_columns": [
                    "phone_numbers.number",
                    "email_contacts.address"
                ],
                "creater_id": 1,
                "created_at": "2021-03-10T07:38:52.000000Z",
                "updated_at": "2021-05-19T12:18:49.000000Z",
                "importable_type": "App\\Contact"
            }
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 15,
        "to": 3,
        "total": 3
    }
}

檢視

Http Request

GET https://{API_HOST}/api/v1/entity-import-task/{id}

curl -X GET
    -H "Content-Type: application/json"
    "https://{API_HOST}/api/v1//entity-import-task/{id}"

Response

Property

Type

Description

data

Object

{
    "data": {
        "id": 2,
        "has_header": false,
        "file": "entity-import/1615362223-import.csv",
        "size": 50,
        "total_amount": 3,
        "description": "dddd",
        "status": 2,
        "current_sheet_index": 1,
        "current_row_index": 3,
        "job_turns": 1,
        "executed_start_at": "2021-03-10 15:43:44",
        "executed_end_at": "2021-03-10 15:43:44",
        "recipe_id": 1,
        "creater_id": 1,
        "created_at": "2021-03-10 15:43:43",
        "updated_at": "2021-03-10 15:43:44",
        "error": null,
        "restart_at": null,
        "stop_at": null,
        "recipe": {
            "id": 1,
            "name": "ccc",
            "description": null,
            "headers": [
                {
                    "value": "contacts.first_name"
                },
                {
                    "value": "contacts.membership_no",
                    "text": "Customer Number"
                },
                {
                    "value": "phone_numbers.number",
                    "set_id": 1
                },
                {
                    "value": "email_contacts.address",
                    "set_id": 1
                }
            ],
            "unique_columns": [
                "phone_numbers.number",
                "email_contacts.address"
            ],
            "creater_id": 1,
            "created_at": "2021-03-10T07:38:52.000000Z",
            "updated_at": "2021-05-19T12:18:49.000000Z",
            "importable_type": "App\\Contact"
        }
    }
}

範本列表

你可以透過 API 查找排程符合的範本 ID,或是透過系統介面查詢相關資訊。

Http Request

GET https://{API_HOST}/api/v1/entity-import-recipe?importable_type=App\Contact

curl -X GET
    -H "Content-Type: application/json"
    "https://{API_HOST}/api/v1/entity-import-recipe?importable_type=App\Contact"

Query Parameters

Parameter

Required

Default

Type

Description

page

false

1

Number

目前在第幾頁

per_page

false

15

Number

每頁呈現多少筆

importable_type

true

null

String

範本類型,這邊請需帶入 App\Contact

Response

{
    "data": [
        {
            "id": 1,
            "name": "ccc",
            "importable_type": "App\\Contact",
            "description": null,
            "headers": [
                {
                    "value": "contacts.first_name"
                },
                {
                    "value": "contacts.membership_no",
                    "text": "Customer Number"
                },
                {
                    "value": "phone_numbers.number",
                    "set_id": 1
                },
                {
                    "value": "email_contacts.address",
                    "set_id": 1
                }
            ],
            "unique_columns": [
                "phone_numbers.number",
                "email_contacts.address"
            ],
            "creater_id": 1,
            "creater": {
                "id": 1,
                "name": "洪 小閎",
                "first_name": "洪",
                "last_name": "小閎",
                "employee_no": "jocoonopa",
                "photo_url": null,
                "identity_no": "A125202038",
                "job_title_id": -1,
                "department_id": -1,
                "extension_id": -1,
                "extension": null,
                "profile_id": 1,
                "group_id": null,
                "group": {
                    "id": null,
                    "name": null,
                    "description": null,
                    "supervisor_id": null
                },
                "cti_agent_account": null,
                "cti_agent": null,
                "cti_agent_id": null,
                "created_at": "2021-01-15 10:53:00",
                "updated_at": "2021-08-05 02:38:09"
            },
            "tasks_count": 13
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}

範本檢視

Http Request

GET https://{API_HOST}/api/v1/entity-import-recipe/{id}

curl -X GET
    -H "Content-Type: application/json"
    "https://{API_HOST}/api/v1/entity-import-recipe/1"

URL Parameters

Parameter

Description

id

批次匯入範本 ID

Response

{
    "data": {
        "id": 1,
        "name": "ccc",
        "importable_type": "App\\Contact",
        "description": null,
        "headers": [
            {
                "value": "contacts.first_name"
            },
            {
                "value": "contacts.membership_no",
                "text": "Customer Number"
            },
            {
                "value": "phone_numbers.number",
                "set_id": 1
            },
            {
                "value": "email_contacts.address",
                "set_id": 1
            }
        ],
        "unique_columns": [
            "phone_numbers.number",
            "email_contacts.address"
        ],
        "creater_id": 1,
        "creater": {
            "id": 1,
            "name": "洪 小閎",
            "first_name": "洪",
            "last_name": "小閎",
            "employee_no": "jocoonopa",
            "photo_url": null,
            "identity_no": "A125202038",
            "job_title_id": -1,
            "department_id": -1,
            "extension_id": -1,
            "extension": null,
            "profile_id": 1,
            "group_id": null,
            "group": {
                "id": null,
                "name": null,
                "description": null,
                "supervisor_id": null
            },
            "cti_agent_account": null,
            "cti_agent": null,
            "cti_agent_id": null,
            "created_at": "2021-01-15 10:53:00",
            "updated_at": "2021-08-05 02:38:09"
        },
        "tasks_count": 13
    }
}
Previous公司Next客戶自訂表格匯入排程

Last updated 12 months ago

⬇️
匯入排程
匯入排程