Copy
Ask AI
insertAssistant {
   object: AssistantInput! 
}: Assistant!
Permissions needed
select (assistants):- id insert (assistants):
- user_id
Arguments
Assistant to create
Show properties
Show properties
Name of the 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. Run against the project’s GraphQL API
Show properties
Show properties
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 to pass to the GraphQL query
Webhook data sources
Show properties
Show properties
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.
URL of the webhook
Arguments to pass to the webhook
Response
Type:Assistant!
ID of the assistant
Name of the 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
Show properties
Show properties
Name of the data source
Description of the data source
GraphQL query to run against the project’s GraphQL API.
Arguments to pass to the GraphQL query
Webhook data sources and tools
Show properties
Show properties
Copy
Ask AI
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
          }
        }
    }
  }
}
Copy
Ask AI
{
  "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"
          }
        ]
      }
    }
  }
}