Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Typebot
OpenAI
Evolution Bot
Dify
Flowise
Chatwoot
Websocket
RabbitMQ
OpenAI
Create OpenIA Bot
POST
/
openai
/
create
/
{instance}
curl --request POST \
--url https://{server-url}/openai/create/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"enabled": true,
"openaiCredsId": "<string>",
"botType": "<string>",
"assistantId": "<string>",
"functionUrl": "<string>",
"model": "<string>",
"systemMessages": [
"<string>"
],
"assistantMessages": [
"<string>"
],
"userMessages": [
"<string>"
],
"maxTokens": 123,
"triggerType": "<string>",
"triggerOperator": "<string>",
"triggerValue": "<string>",
"expire": 123,
"keywordFinish": "<string>",
"delayMessage": 123,
"unknownMessage": "<string>",
"listeningFromMe": true,
"stopBotFromMe": true,
"keepOpen": true,
"debounceTime": 123,
"ignoreJids": [
"<string>"
]
}'
Authorizations
Your authorization key header
Path Parameters
Name of the instance
Body
application/json
curl --request POST \
--url https://{server-url}/openai/create/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"enabled": true,
"openaiCredsId": "<string>",
"botType": "<string>",
"assistantId": "<string>",
"functionUrl": "<string>",
"model": "<string>",
"systemMessages": [
"<string>"
],
"assistantMessages": [
"<string>"
],
"userMessages": [
"<string>"
],
"maxTokens": 123,
"triggerType": "<string>",
"triggerOperator": "<string>",
"triggerValue": "<string>",
"expire": 123,
"keywordFinish": "<string>",
"delayMessage": 123,
"unknownMessage": "<string>",
"listeningFromMe": true,
"stopBotFromMe": true,
"keepOpen": true,
"debounceTime": 123,
"ignoreJids": [
"<string>"
]
}'