Velvet Unicorn (AI /ask)
Use this skill to get a structured, AI-generated response from:
POST https://gentweet.velvetdao.xyz/ask
It’s meant to cover:
- token analyses (tickers, addresses, chain context)
- wallet analyses (EVM/Solana addresses, holdings, performance)
- trade analyses (may return tx data to simulate/prepare, not broadcast)
What you send
Send a JSON body matching this shape:
{
"question": "string",
"context": "string",
"userid": "string | null",
"userid_sol": "string | null",
"previous_questions": ["string", "..."]
}
Notes:
contextshould be a short, relevant summary (not the whole chat).useridis typically the user’s EVM wallet address (0x…).userid_solis typically the user’s Solana address.previous_questionsshould be the last ~3 relevant user questions (optional).
What you expect back
The endpoint should return a dict like:
{
"meta_category": 0,
"vu_category": 1,
"answer": "string",
"txdata": { "..." : "..." }
}
answeris what you tell the user.txdatamay be null/empty; if present, treat it as unsigned / unbroadcast intent.
How to call it (preferred)
Use the helper script:
python3 {baseDir}/scripts/ask_unicorn.py \
--question "Analyze $TOKEN and summarize risk + momentum" \
--context "User is interested in short-term swing; medium risk tolerance." \
--userid "0xabc..." \
--userid-sol "" \
--previous-questions '["what do you think of $TOKEN", "compare it to $OTHER"]'
Or use the shell wrapper:
bash {baseDir}/scripts/ask_unicorn.sh "Analyze $TOKEN" "Context here" "0xabc..." "" '["prev q1","prev q2"]'
How to respond to the user
- Run the script and parse the JSON output.
- Show
answerdirectly. - If
txdatais present:- present it clearly as “proposed transaction data”
- ask for explicit confirmation before any signing/broadcast workflow
- never claim execution happened unless you have an onchain confirmation
Environment variables (optional)
VELVET_UNICORN_ENDPOINTto override the default endpoint.VELVET_UNICORN_API_KEYif your endpoint requires auth (sent asAuthorization: Bearer …).
If you’re using OpenClaw config injection, per-skill env can be set under skills.entries.<skillKey>.env.
微信扫一扫