gemini_command
Plan and execute LINE Bot actions using Gemini AI, including sending messages, managing rich menus, checking message quotas, and retrieving user profiles through natural language commands.
Instructions
Use Gemini to plan and execute one LINE action (get profile, get rich menu list, get message quota, push/broadcast text or flex).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dbLimit | No | Max rows to include from dbQuery in knowledge (default 100, max 200) | |
dbParams | No | Optional parameters for dbQuery (mapped to @name placeholders) | |
dbQuery | No | Optional read-only SQL (SELECT/WITH) to fetch data from MSSQL and include as knowledge (Markdown table). | |
filePath | No | Optional relative Markdown path (e.g., docs/data-learning/knowledge.md) to use as knowledge context | |
instruction | Yes | Natural language command, e.g., 'ดึงโปรไฟล์ขà¸à¸‡à¸œà¸¹à¹‰à¹ƒà¸Šà¹‰', 'ส่งข้à¸à¸„วามว่า สวัสดี', 'ดูรายà¸à¸²à¸£ rich menu' | |
knowledgeSource | No | Choose knowledge source: 'file' (Markdown via filePath) or 'mssql' (database schema snapshot) | file |
mode | No | Mode: 'auto' (planner decides), 'actions' (force planner), 'qa' (answer from knowledge and push text) | auto |
model | No | Gemini model name, e.g., gemini-2.0-flash | gemini-2.0-flash |
userId | No | Optional LINE userId to target. Overrides DESTINATION_USER_ID if provided. |
Input Schema (JSON Schema)
{
"properties": {
"dbLimit": {
"default": 100,
"description": "Max rows to include from dbQuery in knowledge (default 100, max 200)",
"maximum": 200,
"minimum": 1,
"type": "integer"
},
"dbParams": {
"additionalProperties": {},
"description": "Optional parameters for dbQuery (mapped to @name placeholders)",
"type": "object"
},
"dbQuery": {
"description": "Optional read-only SQL (SELECT/WITH) to fetch data from MSSQL and include as knowledge (Markdown table).",
"type": "string"
},
"filePath": {
"description": "Optional relative Markdown path (e.g., docs/data-learning/knowledge.md) to use as knowledge context",
"type": "string"
},
"instruction": {
"description": "Natural language command, e.g., 'ดึงโปรไฟล์ขà¸à¸‡à¸œà¸¹à¹‰à¹ƒà¸Šà¹‰', 'ส่งข้à¸à¸„วามว่า สวัสดี', 'ดูรายà¸à¸²à¸£ rich menu'",
"minLength": 1,
"type": "string"
},
"knowledgeSource": {
"default": "file",
"description": "Choose knowledge source: 'file' (Markdown via filePath) or 'mssql' (database schema snapshot)",
"enum": [
"file",
"mssql"
],
"type": "string"
},
"mode": {
"default": "auto",
"description": "Mode: 'auto' (planner decides), 'actions' (force planner), 'qa' (answer from knowledge and push text)",
"enum": [
"auto",
"actions",
"qa"
],
"type": "string"
},
"model": {
"default": "gemini-2.0-flash",
"description": "Gemini model name, e.g., gemini-2.0-flash",
"type": "string"
},
"userId": {
"description": "Optional LINE userId to target. Overrides DESTINATION_USER_ID if provided.",
"type": "string"
}
},
"required": [
"instruction"
],
"type": "object"
}