# 1. list your personas and their tasks
curl "$PERSONAAS_BASE_URL/api/v1/personas/" \
-H "x-personaas-key: $PERSONAAS_API_KEY"
# → [ { "id": 12, "name": "HR Assistant", "tasks": [ { "id": 40, … } ] } ]
# 2. create a conversation with one persona and task
curl -X POST "$PERSONAAS_BASE_URL/api/v1/activity/" \
-H "x-personaas-key: $PERSONAAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "persona_id": 12, "task_id": 40 }'
# 3. open its stream: the answer arrives here as it is written
curl -N "$PERSONAAS_BASE_URL/api/v2/activity/$ACTIVITY_ID/stream" \
-H "x-personaas-key: $PERSONAAS_API_KEY"
# 4. in another terminal, send the question
curl -X POST \
"$PERSONAAS_BASE_URL/api/$PERSONAAS_ENGINE/activity/$ACTIVITY_ID/message" \
-H "x-personaas-key: $PERSONAAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "input": "How many leave days can I carry over?" }'