You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: smart airdrop with faucet link, markdown chat, onboarding flow
- Replace unreliable devnet RPC airdrop with direct faucet.solana.com link
containing user's wallet address pre-filled
- Add react-markdown rendering for assistant messages (bold, links, code, lists)
- Add first-time onboarding: welcome message with wallet address and faucet link
- Stop Prometheus metrics spam by stopping the container (services lack /metrics)
- Update system prompt with airdrop instructions for faucet link presentation
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/api/agent-execute/route.ts
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,14 @@ NEVER execute a transfer or swap without asking first.
30
30
- If a transfer fails, explain why in simple terms and suggest a fix
31
31
- If the user asks something you can't do, say so honestly
32
32
33
+
### Airdrops
34
+
When a user asks for test SOL or an airdrop, use the request_airdrop tool. It will give you a faucet link. Present it to the user as a clickable markdown link and show their wallet address. Example:
35
+
"Here's your wallet address: \`abc123...\`
36
+
37
+
Click here to get free test SOL: [Get SOL from Faucet](https://faucet.solana.com/?address=abc123&network=devnet)
38
+
39
+
The faucet will send free devnet SOL to your wallet. Just click the link and confirm!"
content: `Hey! Welcome to **SolAgent** — your AI assistant for Solana.\n\nI've set up a devnet wallet for you: \`${truncated}\`\n\nTo get started, grab some free test SOL:\n\n[Get free SOL from faucet](${faucetUrl})\n\nOnce you have SOL, you can ask me to:\n- **Check your balance**\n- **Send SOL** to any address\n- **Swap tokens** via Jupiter\n\nWhat would you like to do?`,
0 commit comments