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

  • project_referencestring · 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.

  • typestring

    Provide the type. One of chat, default_chat, plan, research, agent_task, support, channel, project_agent.

  • titlestring · max length 500

    Short human-readable title for the record.

  • idempotency_keystring · 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.

  • metadataobject

    Additional structured metadata for the request.

  • initial_messageobject

    A first user message stored atomically with the conversation, as on REST POST /conversations.

Responses

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": {}  }}'
{  "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"    }  }}

The tool ran; its output is result.structuredContent.