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

# Apply Use Case Template

> Apply a use case template to an agent.



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json post /config/agents/{agent_id}/apply-template
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /config/agents/{agent_id}/apply-template:
    post:
      tags:
        - agent-configuration
      summary: Apply Use Case Template
      description: Apply a use case template to an agent.
      operationId: apply_use_case_template_config_agents__agent_id__apply_template_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UseCaseTemplate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UseCaseTemplate:
      properties:
        use_case:
          type: string
          pattern: >-
            ^(appointment_scheduling|customer_support|lead_qualification|satisfaction_survey|[a-z_]+)$
          title: Use Case
        user_language:
          type: string
          maxLength: 10
          minLength: 2
          title: User Language
          default: en
        organization_name:
          type: string
          maxLength: 255
          minLength: 1
          title: Organization Name
        custom_requirements:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Custom Requirements
      type: object
      required:
        - use_case
        - organization_name
      title: UseCaseTemplate
      description: Use case template for quick agent setup.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````