Service: OpenAI Assistant - EyevinnOSC/community GitHub Wiki
OpenAI Assistant is a ready-to-deploy chatbot application built on the OpenAI Assistants API. It wraps your existing OpenAI Assistant (configured on platform.openai.com) with a chat UI that you can embed in your website or use standalone. Available as an open web service in Eyevinn Open Source Cloud.
- If you have not already done so, sign up for an Eyevinn OSC account
- An OpenAI account with an API key
- An OpenAI Assistant already created at platform.openai.com/assistants
- Go to platform.openai.com/assistants
- Click Create assistant
- Give it a name, instructions, and choose a model (e.g.
gpt-4o) - Copy the Assistant ID — it looks like
asst_abc123...
Navigate to the OpenAI Assistant service in the Eyevinn OSC web console. Go to the Service Secrets tab and click New Secret.
Create a secret named openaikey with your OpenAI API key (starts with sk-...).
Go to the My openai-assistants tab and click Create openai-assistant. Fill in:
| Field | Description |
|---|---|
| Name | Name for your instance (alphanumeric and underscores only) |
| OpenAiApiKey | {{secrets.openaikey}} |
| AssistantId | Your OpenAI Assistant ID, e.g. asst_abc123...
|
| AppUrl | (optional) URL of the website where you will embed the chat widget |
Click the instance card when the status is green and "running" to open the chatbot UI.
If you provided an AppUrl, the service configures CORS to allow embedding from that domain. Add an iframe to your page:
<iframe
src="https://your-instance-url"
width="400"
height="600"
style="border: none;"
></iframe>osc create boldare-openai-assistant my-chatbot \
-o OpenAiApiKey="sk-..." \
-o AssistantId="asst_abc123..."