> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# createAgentTrigger

GraphQL MUTATION

Creates a trigger which fires the agent.

Reference: https://docs.credal.com/api-reference/mutations/create-agent-trigger

## GraphQL Schema

```graphql
mutation ExampleMutation($request: CreateAgentTriggerRequest!) {
  createAgentTrigger(request: $request)
}
```

## Variables

```json
{
  "request": {
    "agentId": "example",
    "source": {
      "scheduled": {
        "jobScheduler": {
          "strategy": {
            "cron": null,
            "interval": null
          },
          "constraints": {
            "limit": null,
            "after": null,
            "before": null
          }
        },
        "userPrompt": "example"
      }
    }
  }
}
```