Discover Packages
github.com/kkdai/linebot-smart-namecard
command
module
Version:
v0.8.1
Opens a new window with list of versions in this module.
Published: Jan 30, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
LINE Bot 使用 Google Gemini Pro 跟 Notion DB 來做的名片小幫手
LINE Bot Screen
Add new card into DB
Search keyword to Name, Title or Email.
Notion DB image
如何快速架設在自己平台
請根據以下的流程,來直接透過開源的程式碼來架設一個 LINEBot 跟 GCP STT 與 GCS (Google Cloud Storage) 的結合。
事前準備
開始部署
請先到程式碼: https://github.com/kkdai/linebot-gemini-pro
部署到雲服務平台:
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 官方帳號的平台,到了右上角的「設定」中,選擇「帳號設定」
將你官方帳號基本資料設定好,並且打開加入群組功能。
到回應設定,將以下設定改好:
回應模式改成「聊天機器人」
停用「自動回應訊息」
啟用「Webhook」
到 Messaging API 選項,將 Webhook 網址填入`: https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback
關於如何快速部署的流程,可以參考另外一篇文章內的影片:
如何使用
傳送名片照片: 會自動透過 Gemini Pro 辨識之後,將結果上傳到 Notion DB.
完整開發教學
License
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.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.