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

# Suggest Triggers

> Analyze agent type system instructions and propose trigger configurations.

Uses the trigger-suggester platform agent to generate suggestions
based on the agent's described responsibilities. Returns event,
schedule, and conversation trigger proposals that the user can
accept, modify, or reject.

Returns:
    Trigger suggestions with agent type ID and proposed configurations.

Raises:
    HTTPException: 400 if agent type has no system instructions.
    HTTPException: 503 if the platform agent call fails or returns
        an invalid structured response.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json post /agents/types/{agent_type_id}/suggest-triggers
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /agents/types/{agent_type_id}/suggest-triggers:
    post:
      tags:
        - agent-types
      summary: Suggest Triggers
      description: >-
        Analyze agent type system instructions and propose trigger
        configurations.


        Uses the trigger-suggester platform agent to generate suggestions

        based on the agent's described responsibilities. Returns event,

        schedule, and conversation trigger proposals that the user can

        accept, modify, or reject.


        Returns:
            Trigger suggestions with agent type ID and proposed configurations.

        Raises:
            HTTPException: 400 if agent type has no system instructions.
            HTTPException: 503 if the platform agent call fails or returns
                an invalid structured response.
      operationId: agent-types-suggest_triggers
      parameters:
        - name: agent_type_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Type Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriggerSuggestions'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TriggerSuggestions:
      properties:
        agent_type_id:
          type: string
          title: Agent Type Id
        suggestions:
          items:
            $ref: '#/components/schemas/TriggerSuggestion'
          type: array
          title: Suggestions
      type: object
      required:
        - agent_type_id
        - suggestions
      title: TriggerSuggestions
      description: |-
        Response containing all trigger suggestions for an agent type.

        Attributes:
            agent_type_id: SurrealDB ID of the analyzed agent type.
            suggestions: Ordered list of suggested triggers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TriggerSuggestion:
      properties:
        trigger_type:
          $ref: '#/components/schemas/TriggerType'
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        configuration:
          additionalProperties: true
          type: object
          title: Configuration
      type: object
      required:
        - trigger_type
        - name
        - description
        - configuration
      title: TriggerSuggestion
      description: |-
        A single trigger suggestion proposed by LLM analysis.

        Attributes:
            trigger_type: Category of trigger ("event", "schedule", "conversation").
            name: Human-readable name for the suggested trigger.
            description: Explanation of why this trigger makes sense for the agent.
            configuration: Trigger-type-specific configuration payload.
    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
    TriggerType:
      type: string
      enum:
        - event
        - schedule
        - conversation
      title: TriggerType
      description: Types of agent triggers.

````