Query
assistant
API Documentation
Backend Services
- Authentication
- Storage
GraphQL
- AI
Client Libraries
- JavaScript
- React
- Next.js
- Vue
- React Native
Query
assistant
query assistant (
$assistantID: String!
) {
graphite {
assistant (
assistantID: $assistantID
) {
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": {
"assistant": {
"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"
}
]
}
}
}
}
assistant {
assistantID: String!
}: Assistant
Retrieve an assistant
Permissions needed
select (assistants):
- id
- assistantID
Arguments
ID of the assistant to retrieve
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
Webhook data sources and tools
query assistant (
$assistantID: String!
) {
graphite {
assistant (
assistantID: $assistantID
) {
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": {
"assistant": {
"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"
}
]
}
}
}
}
query assistant (
$assistantID: String!
) {
graphite {
assistant (
assistantID: $assistantID
) {
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": {
"assistant": {
"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"
}
]
}
}
}
}