POST
https://app.evoriqa.com/api/v1/chatbots/from-templateCreate a chatbot from a template
Creates a pre-configured chatbot from a template key. A template seeds knowledge sources as well as the chatbot, so it is checked against both the chatbot limit and the source ceiling (402 when either is reached). An unknown key is a **404**, not a 422.
Requires scope chatbots:write
Warning:
Access is gated — enable it before your first call
The API is off by default. A request succeeds only when all three switches are on: the platform master switch (off by default), your organisation’s API toggle, and your plan or client entitlement. Any one off returns 403 API access is not enabled for this workspace.
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| template | string one of restaurant · hotel · salon · clinic · lawfirm · automotive | Required | A template key from the GET listing. |
Request
curl
curl -X POST "https://app.evoriqa.com/api/v1/chatbots/from-template" \
-H "x-api-key: $EVORIQA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "template": "restaurant" }'Node.js
const res = await fetch("https://app.evoriqa.com/api/v1/chatbots/from-template", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EVORIQA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"template": "restaurant"
}),
});
const responseBody = await res.json();Python
import os
import requests
res = requests.post(
"https://app.evoriqa.com/api/v1/chatbots/from-template",
headers={"Authorization": f"Bearer {os.environ['EVORIQA_API_KEY']}"},
json={
"template": "restaurant"
},
)
body = res.json()Response
200 OK
{
"success": true,
"data": {
"id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"publicId": "cb_9x2k7m4q"
}
}