Direct GPT-4o and GPT-4 access
BotChap connects your website chat widget to OpenAI Chat Completions via the BotChap server-side proxy. Your OpenAI API key is stored encrypted on the server, it is never exposed to the browser or to website visitors.
Use this integration when you want direct OpenAI model access with a branded chat widget. Ideal for FAQ bots, support assistants, and any use case where OpenAI Chat Completions is already your chosen backend.
BotChap's server proxy builds this Chat Completions request:
{
"model": "<your configured model>",
"messages": [
{ "role": "system", "content": "<your system prompt>" },
{ "role": "user", "content": "<previous turn>" },
{ "role": "assistant", "content": "<previous reply>" },
{ "role": "user", "content": "<current visitor message>" }
],
"temperature": <your setting>,
"max_tokens": <your setting>
}POST https://api.openai.com/v1/chat/completions
Authorization: Bearer <your-key-on-server>
{
"model": "gpt-4o",
"messages": [
{ "role": "system", "content": "You are a helpful support agent." },
{ "role": "user", "content": "What integrations do you support?" }
],
"temperature": 0.7
}{
"choices": [{
"message": {
"role": "assistant",
"content": "We support n8n, Flowise, Dify, LangChain, Voiceflow, and more."
}
}]
}Create a free widget, configure the integration, and embed it on your site in minutes.