# Set ice breakers and commands

Sets ice breakers and commands.

```http
POST https://api.pozy.ai/v1/whatsapp/conversational-automation
```

- Area: WhatsApp / WhatsApp
- Auth: Authorization: Bearer pz_live_...

## Request body

Content type: `application/json`

- `accountId`, string, required
- `enable_welcome_message`, boolean
- `prompts`, array of string: Up to 3 items. Each item: 1 to 80 characters
- `commands`, array of object: Up to 30 items
  - `command_name`, string, required: 1 to 30 characters. Matches `^[a-zA-Z0-9_]+$`
  - `command_description`, string, required: 1 to 256 characters

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/whatsapp/conversational-automation" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "enable_welcome_message": true,
  "prompts": [
    "string"
  ],
  "commands": [
    {
      "command_name": "Acme",
      "command_description": "string"
    }
  ]
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/whatsapp/conversational-automation", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    accountId: "696e0b682d0a31188e7a2ba9",
    enable_welcome_message: true,
    prompts: [
      "string"
    ],
    commands: [
      {
        command_name: "Acme",
        command_description: "string"
      }
    ]
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.post(
    "https://api.pozy.ai/v1/whatsapp/conversational-automation",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "accountId": "696e0b682d0a31188e7a2ba9",
        "enable_welcome_message": True,
        "prompts": [
            "string",
        ],
        "commands": [
            {
                "command_name": "Acme",
                "command_description": "string",
            },
        ],
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean

```json
{
  "success": true
}
```
