linebot-food-enthusiast

command module
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

LINE Bot 使用 Google Gemini Pro 來做你的餐飲專家


GoDoc Go goreportcard.com

LINE Bot Screen

如何快速架設在自己平台

請根據以下的流程,來直接透過開源的程式碼來架設一個 LINEBot 跟 GCP STT 與 GCS (Google Cloud Storage) 的結合。

事前準備
開始部署
  1. 請先到程式碼: https://github.com/kkdai/linebot-gemini-pro

  2. 部署到雲服務平台 (三個擇一即可):

    2.1. 按下: Deploy 來部署到你的 Heroku 帳號

    2.2 按下: Deploy to Render 來部署到你的 Render 帳號

  3. 除了填寫 App Name 以外,以下的參數必須要填入才能完整運行。

    1. ChannelAccessToken: 請到 LINE Developers Console issue 一個。
    2. ChannelSecret: 請到 LINE Developers Console 拿一個。
    3. GOOGLE_GEMINI_API_KEY: 必需要透過 Google Gemini API Keys 來取得。
  4. 請到 LINE 官方帳號的平台,到了右上角的「設定」中,選擇「帳號設定」

    1. 將你官方帳號基本資料設定好,並且打開加入群組功能。

      1. image-20220421103018014
    2. 到回應設定,將以下設定改好:

      1. 回應模式改成「聊天機器人」
      2. 停用「自動回應訊息」
      3. 啟用「Webhook」
    3. 到 Messaging API 選項,將 Webhook 網址填入`: https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback

    4. 關於如何快速部署的流程,可以參考另外一篇文章內的影片:

如何使用
  • 打開聊天機器人
    • 傳送圖片: 直接辨識圖片內容,目前的想法是透過比較科學化的角度來說明。
完整開發教學

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL