/openai/creds/{{instance}}
endpoint.
name
: Identifier name for the credential.apiKey
: API key provided by OpenAI./openai/create/{{instance}}
endpoint.
enabled
: Enables (true
) or disables (false
) the bot.openaiCredsId
: ID of the previously registered credential.botType
: Type of bot (assistant
or chatCompletion
).
assistant
):
assistantId
: ID of the OpenAI assistant.functionUrl
: URL that will be called if the assistant needs to perform an action.chatCompletion
):
model
: OpenAI model to be used (e.g., gpt-4
).systemMessages
: Messages that configure the bot’s behavior.assistantMessages
: Initial messages from the bot.userMessages
: Example user messages.maxTokens
: Maximum number of tokens used in the response.triggerType
: Type of trigger to start the bot (all
or keyword
).triggerOperator
: Operator used to evaluate the trigger (contains
, equals
, startsWith
, endsWith
, regex
, none
).triggerValue
: Value used in the trigger (e.g., a keyword or regex).expire
: Time in minutes after which the bot expires, restarting if the session has expired.keywordFinish
: Keyword that ends the bot session.delayMessage
: Delay (in milliseconds) to simulate typing before sending a message.unknownMessage
: Message sent when the user’s input is not recognized.listeningFromMe
: Defines if the bot should listen to messages sent by the user (true
or false
).stopBotFromMe
: Defines if the bot should stop when the user sends a message (true
or false
).keepOpen
: Keeps the session open, preventing the bot from restarting for the same contact.debounceTime
: Time (in seconds) to combine multiple messages into one.ignoreJids
: List of JIDs of contacts that will not activate the bot.remoteJid
: JID (identifier) of the contact on WhatsApp.status
: Session status (opened
, paused
, closed
).openaiCredsId
: ID of the OpenAI credential to be used as default.expire
: Time in minutes after which the bot expires.keywordFinish
: Keyword that ends the bot session.delayMessage
: Delay to simulate typing before sending a message.unknownMessage
: Message sent when the user’s input is not recognized.listeningFromMe
: Defines if the bot should listen to messages sent by the user.stopBotFromMe
: Defines if the bot should stop when the user sends a message.keepOpen
: Keeps the session open, preventing the bot from restarting for the same contact.debounceTime
: Time to combine multiple messages into one.ignoreJids
: List of JIDs of contacts that will not activate the bot.openaiIdFallback
: Fallback bot ID that will be used if no trigger is activated.speechToText
: Defines if the speech-to-text recognition feature should be activated using the default credential.speechToText
speechToText
parameter is enabled, the Evolution API automatically converts received audio to text using the OpenAI credential. The audio transcription is then included in the webhook sent by the API.
speechToText