Medplum · Capability

Medplum — Bots

Medplum Bots are TypeScript serverless functions (AWS Lambda-like) triggered by FHIR Subscriptions, HTTP calls, or scheduled cron. This capability covers managing Bot resources and invoking deployed bots over the FHIR API.

Medplum — Bots is a Naftiko capability published by Medplum, one of 3 capabilities the APIs.io network indexes for this provider.

Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Medplum, Bots, Automation, and Serverless.

Run with Naftiko MedplumBotsAutomationServerless

Capability Spec

medplum-bots.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Medplum — Bots
  description: >-
    Medplum Bots are TypeScript serverless functions (AWS Lambda-like) triggered by FHIR
    Subscriptions, HTTP calls, or scheduled cron. This capability covers managing Bot
    resources and invoking deployed bots over the FHIR API.
  tags:
    - Medplum
    - Bots
    - Automation
    - Serverless
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
  - namespace: env
    keys:
      MEDPLUM_ACCESS_TOKEN: MEDPLUM_ACCESS_TOKEN
capability:
  consumes:
    - type: http
      namespace: medplum-bots
      baseUri: https://api.medplum.com/fhir/R4
      description: Medplum Bot FHIR resource + $execute operation surface.
      resources:
        - name: Bot
          path: /Bot
          operations:
            - name: createBot
              method: POST
              description: Create a new Medplum Bot resource (definition + source code).
              outputRawFormat: json
              inputParameters:
                - name: body
                  in: body
                  type: object
                  required: true
            - name: listBots
              method: GET
              description: Search Bot resources in the current project.
              outputRawFormat: json
        - name: BotExecute
          path: /Bot/{id}/$execute
          operations:
            - name: executeBot
              method: POST
              description: Execute a deployed Bot directly via the FHIR $execute operation.
              outputRawFormat: json
              inputParameters:
                - name: id
                  in: path
                  type: string
                  required: true
                - name: body
                  in: body
                  type: object
                  description: Arbitrary JSON payload made available as event.input inside the bot.