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

# Start Enrichment Chat

> Start a new enrichment chat interface with enhanced initialization.

Enhanced version with performance monitoring, better error handling,
and optimized welcome message generation.

Features:
- Performance monitoring and timing
- Enhanced error handling and logging
- Optimized agent integration
- Response time tracking

Returns:
    EnrichmentChatResponse: Initial chat message with timing information

Raises:
    HTTPException: If authentication fails or system error occurs



## OpenAPI

````yaml https://api.bavlio.com/openapi.json post /api/v1/enrichment-chat/start
openapi: 3.1.0
info:
  title: Bavlio API
  description: >-
    Outreach automation API — lead enrichment, email campaigns, LinkedIn
    automation, and AI agent. Full docs at https://docs.bavlio.com.
  version: 1.0.0
servers: []
security: []
tags:
  - name: API Keys
    description: >-
      Create, list, and revoke API keys for programmatic access. JWT
      authentication required.
  - name: credits
    description: Credit balance, cost estimates, and transaction history.
  - name: campaigns
    description: Create, manage, launch, and monitor email campaigns.
  - name: campaign-personalization
    description: AI-powered email subject and body personalization for campaigns.
  - name: email-finder
    description: Find and verify email addresses for prospects.
  - name: email-verification
    description: Validate email addresses and prune invalid entries from datasets.
  - name: sender-profiles
    description: Manage sender identity profiles for outreach.
  - name: sender-profile-chat
    description: Interactive chat for building sender profiles.
  - name: templates
    description: Email template CRUD.
  - name: suppression
    description: Do-not-contact suppression list management.
  - name: datasets
    description: Lead dataset listing, download, and updates.
  - name: user-extractions
    description: Uploaded lead file management and processing.
  - name: enrichment-chat
    description: Interactive chat for data enrichment sessions.
  - name: enrichment-processing
    description: Batch lead enrichment processing.
  - name: File Upload (CSV/Excel)
    description: Upload and preview CSV/Excel lead files.
  - name: connected-accounts
    description: LinkedIn account connections via Unipile.
  - name: linkedin-content
    description: LinkedIn post creation, scheduling, and management.
  - name: linkedin-playground
    description: Direct LinkedIn actions (profile lookup, messaging, engagement).
  - name: bavimail-proxy
    description: BaviMail domain, alias, and email management.
  - name: agent
    description: Bavi AI agent chat with SSE streaming.
  - name: notifications
    description: Notification preferences and delivery.
  - name: referral
    description: Referral code management and stats.
  - name: feedback
    description: User feedback submission.
  - name: authentication
    description: JWT token verification and user info.
  - name: Google OAuth
    description: Google OAuth login flow and access tokens.
  - name: Google Sheets OAuth
    description: Google Sheets import and access management.
  - name: stripe
    description: Stripe checkout, billing portal, and subscription status. JWT only.
  - name: users
    description: User quota and usage information.
  - name: Health
    description: Health checks and system status.
  - name: Personalization
    description: Core lead personalization engine.
  - name: Session Management
    description: Enrichment session lifecycle.
  - name: Session Processing
    description: Session data processing.
  - name: webhooks
    description: Inbound webhook handlers (Stripe, BaviMail, Unipile).
paths:
  /api/v1/enrichment-chat/start:
    post:
      tags:
        - enrichment-chat
      summary: Start Enrichment Chat
      description: |-
        Start a new enrichment chat interface with enhanced initialization.

        Enhanced version with performance monitoring, better error handling,
        and optimized welcome message generation.

        Features:
        - Performance monitoring and timing
        - Enhanced error handling and logging
        - Optimized agent integration
        - Response time tracking

        Returns:
            EnrichmentChatResponse: Initial chat message with timing information

        Raises:
            HTTPException: If authentication fails or system error occurs
      operationId: start_enrichment_chat_api_v1_enrichment_chat_start_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrichmentChatResponse'
        '401':
          description: Unauthorized - Invalid or missing JWT token
        '403':
          description: Forbidden - Insufficient permissions
      security:
        - HTTPBearer: []
components:
  schemas:
    EnrichmentChatResponse:
      properties:
        session_id:
          type: string
          title: Session Id
          description: Session identifier
        message:
          $ref: '#/components/schemas/EnrichmentChatMessage'
          description: Assistant's response message
        action:
          anyOf:
            - type: string
            - type: 'null'
          title: Action
          description: >-
            Action to trigger in frontend (e.g., 'requestUpload',
            'startProcessing')
        suggested_fields:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Suggested Fields
          description: Suggested fields to enrich based on user query
        processing_status:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Processing Status
          description: Status of ongoing enrichment processing
        credits_estimated:
          anyOf:
            - type: integer
            - type: 'null'
          title: Credits Estimated
          description: Estimated credits required for suggested operations
        rate_limit_remaining:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rate Limit Remaining
          description: Remaining rate limit for user
        response_time_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Response Time Ms
          description: Response time in milliseconds
      type: object
      required:
        - session_id
        - message
      title: EnrichmentChatResponse
      description: Enhanced response model for enrichment chat interactions.
    EnrichmentChatMessage:
      properties:
        id:
          type: string
          title: Id
        role:
          type: string
          title: Role
          description: 'Message sender: ''user'' or ''assistant'''
        content:
          type: string
          title: Content
          description: Message content
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
          description: Additional metadata like action type, file info, etc.
      type: object
      required:
        - role
        - content
      title: EnrichmentChatMessage
      description: Represents a single message in the enrichment chat conversation.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````