Closed7
LINE bot PaLM2

Create
をクリックします。
名前はGenAI
とします。

Create a MessagingAPI Channelをクリックします。

設定項目がいくつかあります。以下のように設定してください。
項目 | 入力するもの |
---|---|
Channel type | Messaging API |
Provider | GenAI |
Company or owner's country or region | Japan |
Channel name | PaLM2くん |
Channel description | VertexAIとCloudRunでLINE botを作成してみた |
Category | 個人 |
Subcategory | 個人(その他) |
Email address | デフォルト |
チェックボックスが2つありますのでチェックを入れます。
I have read and agree to the LINE Official Account Terms of Use
I have read and agree to the LINE Official Account API Terms of Use
Create
をクリックします。

チャネル基本設定にあるチャネルシークレット
をコピーします。
次にMessaging API設定チャネルアクセストークン
をコピーします。

応答メッセージとあいさつメッセージをそれぞれ無効にするために編集をクリックします。
Webhookは有効にします。

以下のようにPermissionDeniedが出てしまった場合はパーミッションを調整する。
PermissionDenied: 403 Vertex AI API has not been used in project *** before or it is disabled.
このスクラップは2023/12/04にクローズされました