query insertAssistant (
  $object: AssistantInput!
) {
  graphite {
    insertAssistant (
      object: $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": {
      "insertAssistant": {
        "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"
          }
        ]
      }
    }
  }
}
insertAssistant {
   object: AssistantInput! 
}: Assistant!

Create an assistant

Permissions needed

select (assistants):

  • id insert (assistants):
  • user_id

Arguments

object
AssistantInput!
required

Assistant to create

Response

Type: Assistant!

assistantID
String!

ID of the assistant

name
String!

Name of the assistant

description
String!

Description of the assistant

instructions
String!

Instructions for the assistant. This is used to instruct the AI assistant on how to behave and respond to the user

model
String!

Model to use for the assistant.

graphql
[AssistantToolGraphQL!]

GraphQL data sources and tools. Run against the project’s GraphQL API

webhooks
[AssistantToolWebhook!]

Webhook data sources and tools