Search project templates

projectTemplateSearch(input: ProjectTemplateSearchInput!): ProjectTemplateMatch!

Arguments

ArgumentTypeRequired
inputProjectTemplateSearchInput!Yes

Input fields

input

ProjectTemplateSearchInput

FieldTypeRequiredDescription
userIntentString!YesDescription of what the user wants to build (1 to 500 characters).

Response

Returns ProjectTemplateMatch!. Open the type for its fields and nested types.

FieldTypeDescription
slugString!
nameString!
descriptionString!
confidenceFloat!Confidence of the match, from 0 to 1.
reasoningString!Why this project template was selected.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ProjectTemplateSearch($input: ProjectTemplateSearchInput!) {
  projectTemplateSearch(input: $input) {
    name
    slug
    confidence
    description
    reasoning
  }
}
json
{
  "input": {
    "userIntent": "example"
  }
}