curl --request POST \
--url https://pria.praxislxp.com/api/user/conversationAssistant \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"course_id": 1750532703472,
"assistantId": "66f0c2a9e4b0a1b2c3d4e5f6"
}
'{
"success": true,
"assistant": {
"_id": "66f0c2a9e4b0a1b2c3d4e5f6",
"name": "Tutor",
"picture_url": "https://example.com/tutor.png"
},
"cleared": false
}History
Choose the assistant of a conversation
Sets which assistant answers a conversation from its next message on, or goes back to the default Digital Twin (assistantId null). The choice is saved with the conversation: the conversation list (POST /api/user/courses) returns it as the conversation’s assistant (assistantChosen true) or as assistantCleared, until a newer message in that conversation is answered. The assistant must be one you can use in that conversation’s Digital Twin. allInstitutions:true is rejected with 400.
POST
/
api
/
user
/
conversationAssistant
curl --request POST \
--url https://pria.praxislxp.com/api/user/conversationAssistant \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"course_id": 1750532703472,
"assistantId": "66f0c2a9e4b0a1b2c3d4e5f6"
}
'{
"success": true,
"assistant": {
"_id": "66f0c2a9e4b0a1b2c3d4e5f6",
"name": "Tutor",
"picture_url": "https://example.com/tutor.png"
},
"cleared": false
}Body
application/json
Response
Stored (success true), or nothing to store yet (success false, code CONVERSATION_EMPTY).
Was this page helpful?