Recipes
Working scripts to copy.
Recipes use the terminal's print mode. Coming with the next terminal release: -p, --wait and piped input.
Nightly report to Slack
# crontab: 0 7 * * *
PRONOIA_TOKEN=… pronoia chat @ava -p "Post yesterday's sales recap to #sales" \
--no-input --idempotency-key "recap-$(date +%F)"The agent posts with its own Slack connection. If posting needs your approval, the command exits 20 and prints the card's link.
Wait for an approval
pronoia chat @ava -p "Send the recap to Jenna" --json > out.json
case $? in
0) jq -r .message.content out.json ;;
20) echo "Approve: $(jq -r '.cards[0].url' out.json)" ;;
22) echo "Still running: pronoia chat follow $(jq -r .conversation_id out.json)" ;;
*) exit 1 ;;
esacPipe a CSV
cat orders.csv | pronoia chat @ava -p "Top 3 SKUs by units, as a table"A Work item from CI
Works today:
pronoia work create --title "Fix flaky checkout test" --assignee @ava --project webAssigning an agent starts its run. pronoia work view <item> shows where it is.