# Create conversation

Tool: `veryfront__create_conversation`

Start a conversation in a project when a user or an agent opens a new thread, optionally with a first user message; a retry with the same idempotency key returns the same conversation. Requires project.conversations.create.

## Arguments

| Name                | Type                                   | Required | Description                                                                                                                                           |
| ------------------- | -------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string · min length 1                  |          | Project ID or slug; required unless the token is project-scoped. Create the conversation optionally with a first user message and an idempotency key. |
| `type`              | string                                 |          | Provide the type. One of `chat`, `default_chat`, `plan`, `research`, `agent_task`, `support`, `channel`, `project_agent`.                             |
| `title`             | string · max length 500                |          | Short human-readable title for the record.                                                                                                            |
| `idempotency_key`   | string · min length 1 · max length 255 |          | Retrying with the same key and the same arguments returns the same conversation; different arguments fail with an idempotency conflict.               |
| `metadata`          | object                                 |          | Additional structured metadata for the request.                                                                                                       |
| `initial_message`   | object                                 |          | A first user message stored atomically with the conversation, as on REST POST /conversations.                                                         |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_conversation",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"project_id\":\"string\",\"responding_agent_id\":null,\"type\":\"chat\",\"title\":\"string\",\"summary\":\"string\",\"status\":\"active\",\"current_node\":\"string\",\"message_count\":0,\"last_message_at\":\"string\",\"metadata\":{},\"created_by\":\"string\",\"archived_at\":\"string\",\"created_at\":\"string\",\"updated_at\":\"string\",\"participants\":[],\"initial_message_id\":\"00000000-0000-0000-0000-000000000000\"}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "project_id": "string",
      "responding_agent_id": null,
      "type": "chat",
      "title": "string",
      "summary": "string",
      "status": "active",
      "current_node": "string",
      "message_count": 0,
      "last_message_at": "string",
      "metadata": {},
      "created_by": "string",
      "archived_at": "string",
      "created_at": "string",
      "updated_at": "string",
      "participants": [],
      "initial_message_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}
```
