- 請先確認自己有LINE 官方帳號 (LINE Official Account 以下簡稱OA)
- 準備一個 LINE 官方帳號 >> 馬上申辦去
- 限加購 / 購買方案包含LINE預約設定者才能使用此功能
Bot 設定
Step.1 登入LINE OA 後台 https://account.line.biz/login?redirectUri=https%3A%2F%2Fmanager.line.biz%2F
Step.2 點選右上角的設定
Step.3 點選左邊選單的回應設定,確認打開聊天&Webhook
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F8d927393-decb-4205-acbb-42cc2c35630e%2F%25E6%2588%25AA%25E5%259C%2596_2023-02-07_%25E4%25B8%258B%25E5%258D%25885.51.48.png%3Ftable%3Dblock%26id%3D974c3e38-a5c0-48a0-bd48-62c01f8eb559%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3Dk1JpbXYs0U-2w5i9VfTF2hyF4qv69puGnumHQKIRP8M?table=block&id=974c3e38-a5c0-48a0-bd48-62c01f8eb559&cache=v2)
Step.4 點選左邊選單的 Messaging API
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F954b6e13-291b-477e-bfbc-568eaec6c964%2F%25E6%2588%25AA%25E5%259C%2596_2023-02-07_%25E4%25B8%258B%25E5%258D%25885.53.05.png%3Ftable%3Dblock%26id%3D7e0e66ed-d52e-4ddb-a497-81790e553982%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3Ds-Qf7V-gDFdHbR8yRnn4LEx10jPX_SPWHgRsGi1naWY?table=block&id=7e0e66ed-d52e-4ddb-a497-81790e553982&cache=v2)
Step.5 將 Channel 資訊內容複製貼回到愛預約店家後台對應欄位
Step.6 複製愛預約後台的Callback URL 欄位內容貼到 Webhook網址 欄位並儲存
Step.7 回到愛預約後台點選儲存 (先跳過LIFF 設定)
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F01f84f22-df4b-4f43-b793-7ea8306daa10%2F%25E6%2588%25AA%25E5%259C%2596_2023-07-26_%25E4%25B8%258B%25E5%258D%25884.31.10.png%3Ftable%3Dblock%26id%3Df04e09c5-649c-4810-a6e2-0294c3ab07b8%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3Dk4XoRkqzjPImhDQCejRmYuC-pz_M0_rf2mfI57CeX7E?table=block&id=f04e09c5-649c-4810-a6e2-0294c3ab07b8&cache=v2)
LIFF 設定
Step.1 登入LINE developers 後台 https://developers.line.biz/zh-hant
Step.2 點選帳號icon 選擇 Console
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F0e072b0b-c34a-4a8d-bf24-680e3b953cd0%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25884.46.15.png%3Ftable%3Dblock%26id%3Df20fd6d7-859c-4c27-b1c2-b147cb4815e9%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3D_hsCndsIO27W1_eZQ5SKUjhMyovjQi4kPv2QB4QJ95w?table=block&id=f20fd6d7-859c-4c27-b1c2-b147cb4815e9&cache=v2)
Step.3 點選 Create a new provider
Provider name: 請輸入您的服務名稱(如果已經有就不用再建立)
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F6064c8f5-73b3-44f3-99a6-45f53d788185%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25884.48.32.png%3Ftable%3Dblock%26id%3D2f489ebf-86ea-4eef-a32b-fcd16bcf3447%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3DC1R1LPWcH_ep-YG-vGboJC9K-75WRx_BNN-TFYjzolI?table=block&id=2f489ebf-86ea-4eef-a32b-fcd16bcf3447&cache=v2)
Step.4 接下來要在剛剛建立的 Provider 之下建立一個 Channel,並且選擇類型 Channel 類型為LINE Login
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F111c2481-f26f-4ddf-b8fa-8b8d23ddef7a%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25884.50.49.png%3Ftable%3Dblock%26id%3Da22a3457-7bd1-442b-9bad-48e0003547e7%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3Dg_SLRLj6QggrnbAYgdCmw2TOMms-vcR48dVaHijQYuw?table=block&id=a22a3457-7bd1-442b-9bad-48e0003547e7&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F6b0fead2-696b-4503-a3e4-91062339469d%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25884.51.04.png%3Ftable%3Dblock%26id%3Defafbc43-a3f6-4845-84ca-c2679aa2a1ef%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3D-tDKlnJWYtINxNHZ3VrEoi-ZoAvaQB5xtFh_zXqZ76I?table=block&id=efafbc43-a3f6-4845-84ca-c2679aa2a1ef&cache=v2)
Step.5 設定Channel
Region to provide the service: 請選擇 Taiwan
Company or owner's country or region : 請選擇 Taiwan
Channel icon: 請上傳您店家的Logo圖
Channel name : 建議名稱線上預約
Channel description: 建議描述您的店家名稱線上預約服務
App types : 請點選 Web app。
Email address : 請輸入電子郵件信箱。
最後勾選「 I have read and agree to the LINE Developers Agreement」後,按「Create」,即可建立Channel。
Step.6 建立完成後將上方的狀態從 Developing 改為 Publish
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F5146970a-3e26-4281-a574-c10f2ede8d1a%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25885.00.19.png%3Ftable%3Dblock%26id%3Dcfb4843f-ac32-4df1-a469-ebd9b0b56809%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3DeaXpYfXTvyzJXJHwmE_b4spyrRVecjUrm7pY5WffIeM?table=block&id=cfb4843f-ac32-4df1-a469-ebd9b0b56809&cache=v2)
Step.7 選擇 LIFF 並點選 Add
- 需要建立2個,一個是建立預約 / 一個是查詢其他預約
// 建立預約
LIFF app name : 建議名稱建立預約
Size : 建議選擇 Tall。
Endpoint URL : 請複製愛預約後台進階功能→LINE預約→建立預約的Endpoint Url 貼回此欄位
Scopes : 選擇profileEdit、openid、chat_message.write
Bot link feature : 選擇 On(Normal)。
點選Add:建立成功
// 查詢其他預約
LIFF app name : 建議名稱查詢其他查詢
Size : 建議選擇 Tall。
Endpoint URL : 請複製愛預約後台進階功能→LINE預約→查詢其他預約的Endpoint Url 貼回此欄位
Scopes : 選擇profileEdit、openid、chat_message.write
Bot link feature : 選擇 On(Normal)。
點選Add:建立成功
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2Fbff87e7b-448f-472a-9847-6bb5a2549c37%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25885.02.45.png%3Ftable%3Dblock%26id%3D474decd9-241e-4116-b1cb-cc5748658841%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3Dm3zvTAeQCS0A4y0wVT4scdnVFQ5ZPBq3YGTS5CoA_6Q?table=block&id=474decd9-241e-4116-b1cb-cc5748658841&cache=v2)
Step.7 在完成的LIFF列表將兩個 LIFF ID 複製貼回愛預約後台對應功能的 LIFF ID 欄位
並且記得開啟 shareTargetPicker 顧客就能將預約資訊分享給其他LINE 聯絡人
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2F9e2480f6-f650-4e95-b6c3-e96fd0334439%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25885.18.13.png%3Ftable%3Dblock%26id%3Dcbf28903-32d1-4803-8faa-06e2460981a5%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3Da1ww2EaByrm6vuAQ8EivrW8p10AWc2l6tXXt0uPcfv4?table=block&id=cbf28903-32d1-4803-8faa-06e2460981a5&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91ad2990-31e6-4a23-b6d8-ba6233a2cc72%2Fd9349d65-095a-4bf9-89ac-b5cfe01725e1%2F%25E6%2588%25AA%25E5%259C%2596_2022-11-01_%25E4%25B8%258B%25E5%258D%25885.21.00.png%3Ftable%3Dblock%26id%3Dde8dc8d1-2a1b-43d4-83bc-5993a6661838%26spaceId%3D91ad2990-31e6-4a23-b6d8-ba6233a2cc72%26expirationTimestamp%3D1725768000000%26signature%3DrvXtz6cLvkgI31IVw4fZMkUd6Hl389cwSJeOjNNfRnw?table=block&id=de8dc8d1-2a1b-43d4-83bc-5993a6661838&cache=v2)