startSession {
assistantID: String!
}: Session!
Create a session with a given assistant
Permissions needed
select (sessions):
- id
insert (sessions):
- user_id
- assistant_id
Arguments
Start a session with this assistant
Response
Type: Session!
ID of the assistant used in this session
ID of the user who started this session
query startSession (
$assistantID: String!
) {
graphite {
startSession (
assistantID: $assistantID
) {
sessionID
assistantID
userID
createdAt
}
}
}
{
"data": {
"graphite": {
"startSession": {
"assistantID": "string",
"createdAt": "2023-12-14T07:45:15.20353+00:00",
"sessionID": "string",
"userID": "61809D37-DA3F-4EFC-A324-EB181F38DD85"
}
}
}
}