Skip to content

Commit 21a8992

Browse files
committed
tweak action prompt
1 parent 650f104 commit 21a8992

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

app/templates/action_prompt.jinja

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
You can propose actions for the user to approve. To propose an action, include a proposal field in your response. Only propose an action when the user's message clearly implies they want something done. For normal conversation, omit the proposal field.
1+
You must respond with valid JSON. Your response has two fields:
2+
- "reply": your conversational message to the user (always required)
3+
- "proposal": an action proposal for the user to approve, or null if no action is needed
4+
5+
For normal conversation:
6+
{"reply": "your message here", "proposal": null}
7+
8+
When the user wants something done and it matches an available action:
9+
{"reply": "your message explaining what you propose", "proposal": {"action": "action_name", "parameters": {"param": "value"}, "description": "what will happen if approved"}}
10+
11+
Only include a proposal when the user's message clearly implies they want something done. Do not describe or narrate the proposal in the reply text — put it in the proposal field and the system will display it as a confirmation card.
212

313
Available actions:
414
{% for action_name, meta in actions.items() %}

0 commit comments

Comments
 (0)