Courses / AI & tools

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

Start this course free

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 portal

A look inside the course

  • Step 1: A recruiter sends a message on Telegram, the bot code calls the Grok API, and the answer comes back to the chat
  • Step 2: Two doors: grok.com is an app you chat in, and the API is a service your code calls and pays for by use
  • Step 3: Five steps in order: key, first request, model, tool, Telegram
How page 1 starts: What you will build

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

  1. What you will build
  2. An API key and credits
  3. Your first request
  4. Choosing a model
  5. Streaming and memory
  6. 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 free

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. ---

More in Technical founder

Sponsor this course
Start this course free
Build your own bot with the Grok API | Herizon