LINE Bot Gemini Pro Vision 名片機器人,透過 Notion 當你的 Database (Golang)
APACHE-2.0 License
請根據以下的流程,來直接透過開源的程式碼來架設一個 LINEBot 跟 GCP STT 與 GCS (Google Cloud Storage) 的結合。
channel secret
與 channel access token
。 請參考這篇教學。部署到雲服務平台:
2.1. 按下: 來部署到你的 Heroku 帳號
2.2 按下: 來部署到你的 Render 帳號
2.3. 按下 來免費部署到你的 Zeabur 帳號
除了填寫 App Name 以外,以下的參數必須要填入才能完整運行。
ChannelAccessToken: 請到 LINE Developers Console issue 一個。
ChannelSecret: 請到 LINE Developers Console 拿一個。
GOOGLE_GEMINI_API_KEY: 必需要透過 Google Gemini API Keys 來取得。
NOTION_INTEGRATION_TOKEN: 取得 Notion Integration Token,請參考[官方文件(https://developers.notion.com/docs/create-a-notion-integration)]。 記得要讓 Notion 頁面取得 Integration 權限 ,參考以下圖片。
NOTION_DB_PAGEID: Notion DB 的頁面網址應該是 https://www.notion.so/b764xxxxxa?v=dexxxx1
那麼 b764xxxxxa
就是你的 DatabasePageId。
請到 LINE 官方帳號的平台,到了右上角的「設定」中,選擇「帳號設定」
將你官方帳號基本資料設定好,並且打開加入群組功能。
到回應設定,將以下設定改好:
到 Messaging API 選項,將 Webhook 網址填入`: https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback
關於如何快速部署的流程,可以參考另外一篇文章內的影片:
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.