updateAssistant {
assistantID : String ! object : AssistantInput !
}: Assistant !
Update an assistant
Permissions needed
select (assistants):
assistant_id
update (assistants):
update_at
Arguments
ID of the assistant to update
New assistant data. Will fully replace the existing assistant
Description of the assistant
Instructions for the assistant. This is used to instruct the AI assistant
on how to behave and respond to the user
Model to use for the assistant.
graphql
[AssistantToolGraphQLInput]
GraphQL data sources. Run against the project’s GraphQL API
Name of the data source. Use a descriptive name
Description of the data source. Be as clear and concise as possible.
This is used to help the AI assistant understand when and how
external data sources should be used.
GraphQL query to run against the project’s GraphQL API.
arguments
[AssistantToolArgumentInput!]!
required
Arguments to pass to the GraphQL query
Description of the argument. Be as clear and concise as possible.
Whether or not the argument is required
webhooks
[AssistantToolWebhookInput]
Webhook data sources
Name of the data source. Use a descriptive name
Description of the data source. Be as clear and concise as possible.
This is used to help the AI assistant understand when and how
external data sources should be used.
arguments
[AssistantToolArgumentInput!]!
required
Arguments to pass to the webhook
Description of the argument. Be as clear and concise as possible.
Whether or not the argument is required
Response
Type: Assistant!
Description of the assistant
Instructions for the assistant. This is used to instruct the AI assistant
on how to behave and respond to the user
Model to use for the assistant.
GraphQL data sources and tools. Run against the project’s GraphQL API
Description of the data source
GraphQL query to run against the project’s GraphQL API.
arguments
[AssistantToolArgument!]!
Arguments to pass to the GraphQL query
Webhook data sources and tools
Description of the data source
arguments
[AssistantToolArgument!]!
Arguments to pass to the webhook
query updateAssistant (
$assistantID : String ! $object : AssistantInput !
) {
graphite {
updateAssistant (
assistantID : $assistantIDobject : $object
) {
assistantID
name
description
instructions
model
graphql {
name
description
query
arguments {
name
description
type
required
}
}
webhooks {
name
description
URL
arguments {
name
description
type
required
}
}
}
}
}
{
"data" : {
"graphite" : {
"updateAssistant" : {
"assistantID" : "string" ,
"description" : "string" ,
"graphql" : [
{
"arguments" : [
{
"description" : "string" ,
"name" : "string" ,
"required" : true ,
"type" : "string"
}
],
"description" : "string" ,
"name" : "string" ,
"query" : "string"
}
],
"instructions" : "string" ,
"model" : "string" ,
"name" : "string" ,
"webhooks" : [
{
"URL" : "string" ,
"arguments" : [
{
"description" : "string" ,
"name" : "string" ,
"required" : true ,
"type" : "string"
}
],
"description" : "string" ,
"name" : "string"
}
]
}
}
}
}