curl --request PUT \
--url https://{server-url}/openai/update/:openaiBotId/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"enabled": true,
"openaiCredsId": "<string>",
"botType": "assistant",
"assistantId": "<string>",
"functionUrl": "<string>",
"model": "<string>",
"systemMessages": [
"<string>"
],
"assistantMessages": [
"<string>"
],
"userMessages": [
"<string>"
],
"maxTokens": 123,
"triggerType": "all",
"triggerOperator": "equals",
"triggerValue": "<string>",
"expire": 123,
"keywordFinish": "<string>",
"delayMessage": 123,
"unknownMessage": "<string>",
"listeningFromMe": true,
"stopBotFromMe": true,
"keepOpen": true,
"debounceTime": 123,
"ignoreJids": [
"<string>"
]
}'
curl --request PUT \
--url https://{server-url}/openai/update/:openaiBotId/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"enabled": true,
"openaiCredsId": "<string>",
"botType": "assistant",
"assistantId": "<string>",
"functionUrl": "<string>",
"model": "<string>",
"systemMessages": [
"<string>"
],
"assistantMessages": [
"<string>"
],
"userMessages": [
"<string>"
],
"maxTokens": 123,
"triggerType": "all",
"triggerOperator": "equals",
"triggerValue": "<string>",
"expire": 123,
"keywordFinish": "<string>",
"delayMessage": 123,
"unknownMessage": "<string>",
"listeningFromMe": true,
"stopBotFromMe": true,
"keepOpen": true,
"debounceTime": 123,
"ignoreJids": [
"<string>"
]
}'
Your authorization key header
Configuration for the OpenAI bot instance
The body is of type object
.