> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geniusforms.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Conversation

> Create a new chat conversation for a form. Use conversations to ask questions about form response data using AI.



## OpenAPI

````yaml openapi.json post /forms/{id}/chat
openapi: 3.1.0
info:
  title: GeniusForms API
  description: >-
    AI-powered form builder API. Create forms manually or generate them from
    natural language prompts.
  version: 1.0.0
  contact:
    name: GeniusForms Support
    email: support@geniusforms.ai
    url: https://geniusforms.ai
servers:
  - url: https://geniusforms.ai/api/v1
    description: Production
  - url: http://localhost:8000/api/v1
    description: Local Development
security:
  - ApiKeyAuth: []
paths:
  /forms/{id}/chat:
    post:
      tags:
        - Chat
      summary: Create Conversation
      description: >-
        Create a new chat conversation for a form. Use conversations to ask
        questions about form response data using AI.
      operationId: createConversation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: Form ID
      responses:
        '201':
          description: Conversation created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatConversation'
        '404':
          description: Form not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ChatConversation:
      type: object
      properties:
        id:
          type: integer
          example: 5
        formId:
          type: integer
          example: 208
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: Invalid request
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from your GeniusForms dashboard

````