Welcome to BotSailor Help! Just use the email OTP to sign in and track your tickets. Password login isn’t needed anymore.

AI API Integration

BotSailor makes it easy to integrate advanced AI models such as OpenAI and DeepSeek into your chatbot workflows. Whether you're enhancing customer support or building conversational marketing bots, this integration allows you to deliver dynamic and intelligent user experiences. This guide walks you through setting up your AI API keys, selecting models, and configuring default behavior — all in just a few clicks.

 

Why Use AI Integration?

Using AI in your chatbot system enables:

  • Smarter replies with natural language understanding.

  • Context-aware assistance using GPT-like models.

  • Automation of repetitive tasks with intelligent prompts.

  • Seamless support via customized instructions.


Step-by-Step: Setting Up AI Integration


Step 1: Navigate to AI Integration Settings

  • Go to Settings under the Administration section.

  • Click on AI (Integration) from the sidebar.






Step 2: Choose Your AI Provider

  • You can toggle between OpenAI or DeepSeek as your provider.

  • For this example, OpenAI is selected.









Step 3: Enter Your API Key


Step 4: Select the AI Model

  • Click on the dropdown labeled Select Model.

  • Choose the appropriate model for your use case (e.g., gpt-4o-mini, gpt-4o, etc. if using OpenAI).


Step 5: Customize AI Behavior (Optional)

  • Under Instruction to AI, write a prompt that defines how the AI should behave.

    • Example: You are an AI assistant.

    • This instruction helps control the tone and style of AI responses.


Step 6: Force User API (Optional)

  • You can enable the switch "Force User to Use Own API Key" if you want each sub-user to provide their own API credentials.

 

Step 7: Save Your Settings

  • Click the blue Save button at the bottom of the screen to apply changes.







Tips for Best Performance

  • 🔐 Protect your API key: Keep it private and regenerate if leaked.

  • ⚙️ Test different models: Use lightweight models for faster replies; advanced models for complex logic.

  • 🧠 Fine-tune instructions: Your system prompt (instruction) plays a big role in how responses are shaped.

  • 🧪 Experiment safely: Use BotSailor’s test bots to preview AI behavior before going live.





Conclusion

AI integration in BotSailor is a powerful feature that brings your chatbot to life with contextual intelligence. Whether you're running marketing campaigns or automating support, setting up OpenAI or DeepSeek only takes a few minutes but the impact on user engagement is long-lasting.

 




FAQs

What is the purpose of integrating AI APIs in BotSailor?
AI integration allows your chatbot to provide smart, context-aware responses using models like OpenAI's GPT or DeepSeek, enhancing automation, support, and conversational experiences.

 


Which AI providers are supported by BotSailor?

Currently, BotSailor supports OpenAI and DeepSeek for AI integration.

 

Where can I find the AI integration settings in BotSailor?
Go to Settings → AI (Integration) under the Administration section in your BotSailor dashboard.



How do I obtain an API key for integration?

Create your API key from the respective provider:



Can I choose which AI model to use?

Yes. Once you've entered your API key, you can choose from available models like gpt-4o-mini or gpt-4o via a dropdown menu.



What does the "Instruction to AI" field do?

This field sets the system prompt or base instruction for the AI model, which controls the tone and behavior of responses. For example: “You are an AI assistant.”



What is the "Force User to Use Own API Key" option?

This optional setting, when enabled, requires sub-users or clients to enter and use their own API keys rather than sharing a global key.

 


What should I do after completing the setup?

Click the Save button to apply your integration and settings.



Are there any best practices for AI integration in BotSailor?

  • Keep your API key secure and regenerate it if exposed.

  • Test with lightweight models for faster replies.

  • Customize the instruction prompt to shape AI behavior.

  • Use test bots to validate responses before deploying live.





Can I switch between OpenAI and DeepSeek later?

Yes, you can switch providers anytime by toggling the selection in the AI Integration settings and updating your API key and model.