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

# Automations

> Manage builder automations with the JavaScript SDK

Use `client.automations` to manage scheduled builder automations for an Agent.

```typescript theme={null}
import { ChatATPClient } from "@chatatp/studio";

const client = new ChatATPClient({ apiKey: "chatatp_sk_..." });

const automation = await client.automations.create(7, {
  name: "Daily follow-up",
  prompt_text: "Review unresolved conversations and follow up.",
  schedule_type: "daily",
  schedule_config: { time: "09:00" },
  timezone: "UTC",
});

const current = await client.automations.retrieve(automation.id);
await client.automations.pause(automation.id);
await client.automations.resume(automation.id);
await client.automations.runNow(automation.id);
const runs = await client.automations.runs(automation.id);
await client.automations.delete(automation.id);
```

Automation responses include `status`, `enabled`, and `next_run_at`.
