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

# Create saved task

> Create a reusable saved task using natural language instructions. This is useful for automating recurring workflows with predefined settings.



## OpenAPI

````yaml POST /saved_tasks
openapi: 3.0.3
info:
  title: BrowserAI Task API
  version: 1.0.0
  description: API for creating and retrieving browser automation tasks and their results.
servers:
  - url: https://browser.ai/api/v1
security: []
paths:
  /saved_tasks:
    post:
      tags:
        - Saved Task
      summary: Create a saved task
      description: >-
        Create a reusable saved task using natural language instructions. This
        is useful for automating recurring workflows with predefined settings.
      operationId: createSavedTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - instructions
                - type
                - project
                - geoLocation
              properties:
                name:
                  type: string
                  description: Name of the saved task
                  example: MySavedTask
                instructions:
                  type: array
                  description: List of natural language actions
                  items:
                    type: object
                    required:
                      - action
                    properties:
                      action:
                        type: string
                        example: >-
                          Open amazon.com, search for AirPods Pro 2, and find
                          the three best prices available
                type:
                  type: string
                  enum:
                    - natural_language
                  description: >-
                    Type of the task. Currently only `natural_language` is
                    supported.
                  example: natural_language
                cron_settings:
                  type: string
                  description: Cron expression for scheduling (leave empty for now)
                  example: ''
                project:
                  type: string
                  description: Project name or ID
                  example: Project_1
                geoLocation:
                  $ref: '#/components/schemas/GeoLocation'
      responses:
        '200':
          description: Saved task created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  taskId:
                    type: string
                    description: ID of the saved task
                  message:
                    type: string
                    example: Saved task created successfully
        '400':
          description: Invalid input
          content:
            application/json:
              example:
                error: Invalid input
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                error: Unauthorized
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                error: Internal server error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GeoLocation:
      type: object
      required:
        - country
      properties:
        country:
          type: string
          description: '2-letter country code, for example: es for Spain.'
        city:
          type: string
        zipcode:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Insert API token, use the format: `apikey <API-TOKEN>`.'

````