Build your own bot with the Grok API
Build your own bot with the Grok API is a free, beginner online course from Herizon.
Learn to build a small chat bot on the Grok API, step by step: get an API key and keep it safe, send a first request, choose a model, stream answers, add memory and a tool, understand limits and cost, and connect it all to a Telegram bot.
You finish with Chatbot Development, API Integration and LLM APIs added to your Herizon profile.
Free · 36 min read · certificate when you pass the quiz · part of Technical founder · last updated 9 November 2026
Free account, about two minutes. You can join if you live in the EU, EEA, UK or Switzerland, or a partner organisation invited you.
Already have an account? Open it in the portalA look inside the course
Rania lives in Oulu and works as a data analyst. She has 3 projects in her portfolio, and recruiters keep asking her the same questions about them. She decides to build a Telegram bot that answers for her. She is a worked example, and you build a bot of your own next to her.
It takes about 36 min of reading, plus exercises, a short quiz and a practice task. It teaches Chatbot Development, API Integration and LLM APIs. Pass the short quiz at the end to get a certificate.
What you will be able to do
- An API key, kept out of your code
- A first request, sent with the Responses API
- A model chosen on purpose, with a cost estimate
- A bot on Telegram that uses one tool
- A plan for limits, errors and what could go wrong
Who it is for
Time per page: 15 to 30 minutes Whole course: 4 to 5 hours (11 pages, at your own speed) This is for you if you are: - Learning to code and want a project that shows API skills - A developer who has not used an LLM API yet - Changing career into a role that builds with AI You need to know a little Python: running a script and installing a package. You need a computer, a Telegram account and a few dollars of credit for the API. ---
The situation you work through
Rania, a data analyst in Oulu, builds a Telegram bot that answers recruiters' questions about her three portfolio projects: an API key kept in an environment variable, a first request, a model choice, one tool, a rate limit and a cost estimate for 100 chats.
Your practice task
Build your own Grok bot for a small topic you know well, such as your portfolio or a small service. It runs on Telegram, keeps its keys in environment variables, and has one tool: either the built-in web search or a function of your own. Submit what the bot answers to two questions, the name of the tool and what it does, the model you chose and why, the names (never the values) of your environment variables, and a cost estimate for 100 chats with the prices and the date you checked them.
Key topics
- What you will build
- An API key and credits
- Your first request
- Choosing a model
- Streaming and memory
- Your own function
and 5 more pages
What you get when you pass
A certificate with your name, the course and the date. Sharing it is your choice. If you share it, it has a public link that anyone can open to check it, and you can add it to LinkedIn.
Common questions about Build your own bot with the Grok API
- Is Build your own bot with the Grok API free?
- Yes. The course is free with a Herizon account, and the account is free too.
- How long does Build your own bot with the Grok API take?
- It takes about 36 min of reading, plus exercises, a short quiz and a practice task. You can stop and continue later, because the portal keeps your place.
- Do I get a certificate?
- Yes. Pass the short quiz at the end to get a certificate you can share, for example on LinkedIn.
- What do I need to start?
- A free Herizon account. The course is written at beginner level.
- Who can join Herizon?
- You can join if you live in the EU, EEA, UK or Switzerland, or a partner organisation invited you.
- Who is Build your own bot with the Grok API for?
- Time per page: 15 to 30 minutes Whole course: 4 to 5 hours (11 pages, at your own speed) This is for you if you are: - Learning to code and want a project that shows API skills - A developer who has not used an LLM API yet - Changing career into a role that builds with AI You need to know a little Python: running a script and installing a package. You need a computer, a Telegram account and a few dollars of credit for the API. ---
Start Build your own bot with the Grok API free
Start this course freeCommon questions about Build your own bot with the Grok API
- Is Build your own bot with the Grok API free?
- Yes. The course is free with a Herizon account, and the account is free too.
- How long does Build your own bot with the Grok API take?
- It takes about 36 min of reading, plus exercises, a short quiz and a practice task. You can stop and continue later, because the portal keeps your place.
- Do I get a certificate?
- Yes. Pass the short quiz at the end to get a certificate you can share, for example on LinkedIn.
- What do I need to start?
- A free Herizon account. The course is written at beginner level.
- Who can join Herizon?
- You can join if you live in the EU, EEA, UK or Switzerland, or a partner organisation invited you.
- Who is Build your own bot with the Grok API for?
- Time per page: 15 to 30 minutes Whole course: 4 to 5 hours (11 pages, at your own speed) This is for you if you are: - Learning to code and want a project that shows API skills - A developer who has not used an LLM API yet - Changing career into a role that builds with AI You need to know a little Python: running a script and installing a package. You need a computer, a Telegram account and a few dollars of credit for the API. ---
More in Technical founder
- Vibe coding: build a small app with an AI coding tool27 min · 12 pages
- Building apps with Lovable26 min · 10 pages
- Git & GitHub for beginners38 min · 11 pages
- Getting started with Claude Code30 min · 15 pages
- Web development fundamentals50 min · 11 pages
- TypeScript fundamentals40 min · 11 pages
- API fundamentals49 min · 11 pages
- AI engineering fundamentals58 min · 12 pages
- Supabase: build a backend without backend code43 min · 11 pages
- Vercel: deploy and ship fast26 min · 11 pages
- Cloud fundamentals31 min · 11 pages
- Cybersecurity fundamentals37 min · 11 pages
- AI coding assistants: GitHub Copilot and OpenAI Codex22 min · 11 pages
- Take payments with Stripe29 min · 11 pages
- Cloudflare for small projects: domains, DNS and Workers25 min · 10 pages
- Build apps with v0 and Bolt37 min · 11 pages
- Java for beginners30 min · 11 pages
- Working as a junior software engineer in the Nordics27 min · 11 pages
- DevOps fundamentals: Docker, CI/CD, Kubernetes and Terraform28 min · 10 pages