Continue a conversation
A conversation keeps its history, so the persona remembers earlier turns. Send
follow-ups to the same activity_id, read the history, and stop a run that is
taking too long.
Send a follow-up in the same conversation
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": "And if I joined mid-year?" }'
The same call and body as the question in
Ask a persona a question, on your
organisation's engine (v1 or v3, see Engines). As with the
first question, open the conversation's stream before sending (or keep it
open) and read the answer from it. The persona remembers the earlier turns.
A new message stops a run that is still in progress on that conversation and starts over. Disable the send button until the answer is there.
Read the messages of a conversation
curl "$PERSONAAS_BASE_URL/api/v1/activity/$ACTIVITY_ID/messages" \
-H "x-personaas-key: $PERSONAAS_API_KEY"
{
"activity_id": "0b6f6a0e-…",
"total_count": 2,
"messages": [
{ "id": "…", "message_type": "user", "content": "How many leave days…", "timestamp": "2026-01-10T09:00:00" },
{ "id": "…", "message_type": "assistant", "content": "You can carry over…", "timestamp": "2026-01-10T09:00:21" }
],
"artifacts": { "all": [ { "id": "…", "filename": "summary.pdf", "mime_type": "application/pdf" } ] }
}
Messages are oldest first. Show user and assistant messages; ignore other
message_type values and other fields unless you need them.
List the user's conversations
curl "$PERSONAAS_BASE_URL/api/v1/activity/my-activities?persona_id=12&page=1&limit=10" \
-H "x-personaas-key: $PERSONAAS_API_KEY"
{
"activities": [
{ "id": "0b6f6a0e-…", "name": "How many leave days…", "status": "…",
"persona_id": 12, "persona_name": "HR Assistant",
"task_id": 40, "task_name": "Leave questions",
"created_at": "…", "updated_at": "…" }
],
"pagination": { "page": 1, "limit": 10, "total_count": 1, "total_pages": 1, "has_next": false, "has_prev": false }
}
Filters: persona_id, task_id, status, start_date, end_date.
Sorting: sort_by (default created_at), sort_order (desc or asc).
Newest first by default.
Stop a run
curl -X POST "$PERSONAAS_BASE_URL/api/$PERSONAAS_ENGINE/activity/$ACTIVITY_ID/kill" \
-H "x-personaas-key: $PERSONAAS_API_KEY"
Use the engine the run is on, normally your organisation's engine (v1 or
v3): a stop sent to the other engine may not stop the run.