Create a bot
POST
/api/v1/bots
const url = 'https://renotify.app/api/v1/bots';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Welcome Bot","description":"Handles first-touch conversations.","mode":"ai","trigger_type":"keyword","trigger_value":"help","target_group_id":16,"ai_instructions":"Answer politely and keep responses concise.","ai_temperature":0.7,"ai_max_tokens":512,"flow_definition":{"steps":[]},"settings":{"handoff_after":3}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://renotify.app/api/v1/bots \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Welcome Bot", "description": "Handles first-touch conversations.", "mode": "ai", "trigger_type": "keyword", "trigger_value": "help", "target_group_id": 16, "ai_instructions": "Answer politely and keep responses concise.", "ai_temperature": 0.7, "ai_max_tokens": 512, "flow_definition": { "steps": [] }, "settings": { "handoff_after": 3 } }'Create a new bot definition for the current team.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
The bot name.
string
Example
Welcome Botdescription
A short description of the bot.
string
Example
Handles first-touch conversations.mode
required
The bot mode.
string
Example
aitrigger_type
required
The trigger type used to activate the bot.
string
Example
keywordtrigger_value
The trigger value when the trigger type requires one.
string
Example
helptarget_group_id
Must match an existing stored value.
integer
Example
16ai_instructions
Instructions to use when the bot runs in AI mode.
string
Example
Answer politely and keep responses concise.ai_temperature
The AI temperature value.
number
Example
0.7ai_max_tokens
The maximum number of tokens for AI replies.
integer
Example
512flow_definition
The flow definition used when the bot runs in flow mode.
object
Example
{ "steps": []}settings
Additional bot settings.
object
schedule_cron
string
Example
nullschedule_timezone
string
Example
nullExample
{ "handoff_after": 3}