AI Chatbot (OpenAI)
A Telegram bot that forwards your messages to OpenAI (ChatGPT) and sends the reply back into the chat — your own personal ChatGPT bot in Telegram.
- 1
Sign up on Deployka
If you don't have an account yet — create one in 30 seconds: email and password.
Create an account → - 2
Get the values you'll need
This template needs 2 variables: OPENAI_API_KEY, BOT_TOKEN. Here's exactly how to get each one.
OPENAI_API_KEY- Open platform.openai.com and log in (or sign up).
- Go to "API keys" (usually via the profile icon top-right, or directly at platform.openai.com/api-keys).
- Click "Create new secret key", give it any name, click "Create".
- Copy the key immediately — it starts with sk-. OpenAI only shows it once!
- Paste it into the OPENAI_API_KEY field on Deployka.
Make sure a payment method is set up in your OpenAI billing settings — without it the key can't make requests once free credits run out.
BOT_TOKEN- Open Telegram — phone or desktop, doesn't matter.
- Search for @BotFather and open it — this is Telegram's official bot for creating bots.
- Send it the command /newbot.
- It will ask for a name — type anything, e.g. "My First Bot". This is just the display name.
- Then it asks for a username — it must end in "bot", e.g. my_first_helper_bot. If it's taken, try another.
- BotFather sends back a long string like 123456789:AAHf3x... — that's your token. Select and copy the whole thing.
- Paste that token into the BOT_TOKEN field on Deployka.
Never share this token with anyone — it grants full control over your bot.
- 3
Deploy it
Click the button below — it opens the templates page with this template already selected. If it needs variables, paste the values from the step above and click Deploy.
Deploy "AI Chatbot (OpenAI)"Deploy usually takes 20–40 seconds. The project status appears in your dashboard and switches to "running" once it's ready.
- 4
Check that it works
Open the bot in Telegram and ask any question — e.g. "Hi, how are you?". A ChatGPT-generated reply should arrive within a few seconds.
This type of project has no web address of its own — that's expected, not an error.
- 5
Something not working?
Open the project page in your dashboard → Logs tab — it shows the exact reason (wrong token, code error, missing variable). Still stuck? Contact support right from your dashboard, or via the Telegram bot with /support.