Two Types
| Type | Set By | Persists |
|---|---|---|
| Page-level | Host app via window.crow() | Yes — reappears after each response |
| Agent-driven | Agent via suggest_actions tool | No — clears when user sends a message |
Page-Level Suggestions
Usewindow.crow('setSuggestedActions', [...]) to set persistent buttons for the current page. These reappear after every agent response.
- label — Button text shown to the user
- message — Text sent to the agent when clicked
Per-Page Example (Next.js)
Agent-Driven Suggestions
The agent can show buttons on demand by calling thesuggest_actions tool. Add instructions to your agent’s system prompt telling it when to offer buttons:
suggest_actions with an array of { label, message } objects. These buttons clear automatically when the user sends their next message.
