# projectTemplateSearch

```graphql
query ProjectTemplateSearch($input: ProjectTemplateSearchInput!) {
  projectTemplateSearch(input: $input) {
    slug
    name
    description
    confidence
    reasoning
  }
}
```

Find the project template that best fits a description of what the user wants to build, ranked by a model; requires a signed-in user on every surface and returns the match with its confidence and reasoning.

## Arguments

| Name               | Type                        | Required | Description                                                        |
| ------------------ | --------------------------- | -------- | ------------------------------------------------------------------ |
| `input`            | ProjectTemplateSearchInput! | Yes      |                                                                    |
| `input.userIntent` | String!                     | Yes      | Description of what the user wants to build (1 to 500 characters). |

## Variables

```json
{
  "input": {
    "userIntent": "string"
  }
}
```

## Responses

| Status | Description                                              |
| ------ | -------------------------------------------------------- |
| 200    | The ProjectTemplateMatch! in data.projectTemplateSearch. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ProjectTemplateSearch($input: ProjectTemplateSearchInput!) {\n  projectTemplateSearch(input: $input) {\n    slug\n    name\n    description\n    confidence\n    reasoning\n  }\n}",
  "variables": {
    "input": {
      "userIntent": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "projectTemplateSearch": {
      "slug": "string",
      "name": "string",
      "description": "string",
      "confidence": 0,
      "reasoning": "string"
    }
  }
}
```
