---
title: "POST /api/automation-rules/draft"
method: POST
path: "/api/automation-rules/draft"
tags: ["Natural languages to Automation Rules"]
---

# POST /api/automation-rules/draft

`POST /api/automation-rules/draft`

Transfer natural language to automation rule for user to verify instead of select rule from our catalog

## Request body

- object
  - `text` string, required

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `name` string, required
    - `description` string, nullable, required
    - `conditions` Schema0, required — unresolved $ref
    - `triggerCron` string, nullable, required
    - `workflowTemplateKey` string, nullable, required
    - `warnings` string[], required

## Other responses

- `401` — Default Response
- `403` — Default Response
- `422` — Default Response
- `429` — Default Response

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 3 breaking, 4 info
  - the response property `data/description` became nullable for the status `200`
  - the response property `data/triggerCron` became nullable for the status `200`
  - the response property `data/workflowTemplateKey` became nullable for the status `200`
  - response property `data/description` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - …3 more
- **2026-08-19** `706a9c7b5703` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/automation-rules/draft/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/97e51f27dc77/schema)
