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

# Resume a paused HITL workflow

> Resumes a Human-in-the-Loop paused brain workflow after the user connects an integration or chooses to skip. Verifies the user matches the original requester, re-validates tool args against schema, builds resume message with provider/account context, creates a new brain_request, starts Temporal workflow with forceTool or skipIntegrations directives, and marks pending_tool_actions as completed.




## OpenAPI

````yaml /openapi/ai-brain.yaml post /brain/resume
openapi: 3.1.0
info:
  title: Connie AI & Brain API
  version: 1.0.0
  description: >
    API for the AI & Brain module â€” the orchestration layer powering all AI
    features: the main conversational AI (Brain), AI chat conversations, browser
    automation tasks, agent identity management, and AI usage tracking.

    The Brain is the core AI engine. It accepts messages, orchestrates tool
    calls via Temporal workflows, and streams responses back. It powers the AI
    copilot across the entire product.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Brain
    description: Core AI engine â€” conversation, streaming, and workflow orchestration
  - name: Brain Plans
    description: Agent planning context (goal, steps, status)
  - name: AI Chat
    description: Persistent conversation and message management
  - name: AI Chat Attachments
    description: File uploads for AI context
  - name: Browser Tasks
    description: AI-driven browser automation tasks
  - name: Artifacts
    description: KB, table, and workflow artifacts attached to conversations
  - name: Agent Identities
    description: Named AI agent configuration and tool assignments
  - name: AI Cache
    description: FAQ response caching
  - name: AI Usage
    description: Token usage statistics
paths:
  /brain/resume:
    post:
      tags:
        - Brain
      summary: Resume a paused HITL workflow
      description: >
        Resumes a Human-in-the-Loop paused brain workflow after the user
        connects an integration or chooses to skip. Verifies the user matches
        the original requester, re-validates tool args against schema, builds
        resume message with provider/account context, creates a new
        brain_request, starts Temporal workflow with forceTool or
        skipIntegrations directives, and marks pending_tool_actions as
        completed.
      operationId: resumeBrainWorkflow
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - pendingActionId
                - action
              properties:
                pendingActionId:
                  type: string
                  description: ID of pending_tool_actions row
                action:
                  type: string
                  enum:
                    - connect
                    - skip
                provider:
                  type: string
                  description: Integration provider name
                connectedProviders:
                  type: array
                  items:
                    type: string
                skippedProviders:
                  type: array
                  items:
                    type: string
                siblingActionIds:
                  type: array
                  items:
                    type: string
                  description: Related pending actions to mark completed
      responses:
        '200':
          description: Workflow resumed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  requestId:
                    type: string
                  channelId:
                    type: string
                  workflowId:
                    type: string
                  action:
                    type: string
        '403':
          description: User does not match original requester
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Action already completed
        '410':
          description: Action expired
        '503':
          description: Temporal unavailable
components:
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.