Evolution API icon

Evolution API

Interact with Evolution API

Actions114

OpenAI → Create Bot

AI-generated

Overview

This node operation creates a new bot instance using the OpenAI API. It is useful for automating the setup of conversational AI bots with customizable behavior and settings. For example, users can create a bot with a specific name, choose an OpenAI model like GPT-4 or GPT-3.5 Turbo, and define system prompts to tailor the bot's responses. This operation supports advanced options such as session management, response creativity, and trigger conditions, making it suitable for building interactive chatbots in various applications.

Use Case Examples

  1. Creating a customer support bot that maintains conversation context and responds to specific keywords.
  2. Setting up a general assistant bot with a custom system prompt and temperature for creative responses.

Properties

Name Meaning
Instance Name The name of the OpenAI instance to use for the bot creation.
Bot Name The name assigned to the new bot being created.
Credential ID The ID of the OpenAI credential used for authentication with the API.
Model The OpenAI model selected for the bot, such as GPT-4o, GPT-4o Mini, GPT-4 Turbo, GPT-4, or GPT-3.5 Turbo.
System Prompt A prompt that defines the bot's behavior and personality.
Max Tokens The maximum number of tokens allowed in the bot's response.
Additional Options Optional settings to customize bot behavior, including session management, listening preferences, session timeout, response creativity (temperature), and trigger keywords/type.

Output

JSON

  • botId - The unique identifier of the created bot.
  • botName - The name of the created bot.
  • model - The OpenAI model used by the bot.
  • status - The current status of the bot after creation.

Dependencies

  • OpenAI API key credential

Troubleshooting

  • Ensure the OpenAI credential ID is valid and has the necessary permissions.
  • Verify that the selected model is supported and available in your OpenAI account.
  • Check that required fields like Instance Name and Bot Name are not empty.
  • Common errors may include authentication failures, invalid parameters, or API rate limits. Verify API key validity and usage limits.

Links

Discussion