Vibe Coding · Intermediate

AI Apps, Agents & APIs

Wire a model into a real product: prompts as product surface, your own data with retrieval, tools and agents, evals, cost control and safety.

Vibe Coding program

Lessons
6
Study time
2h
Level
Intermediate
Program
Vibe Coding

Sign in to open the lessons

6 lessons

Lessons, files and narration open after you sign in and buy the program. One payment opens every course in it.

Sign in to open a lesson. Buying the program opens every course and lesson in it, permanently.

About this course

Using a chat window is not the same as building a product on a model. This course is about the second thing: calling a model from your own backend, putting your own data behind it, giving it tools, and keeping it fast, affordable and safe.

You will learn prompt design as a product surface rather than a trick, retrieval so answers come from documents you trust instead of the model's memory, tool and agent patterns that let the model act without handing it your keys, and evaluation so you can prove quality changed when you changed the prompt. Cost and latency are treated as first-class design constraints, because an assistant that costs more than it earns is not a product.

The project is a support assistant that answers from your own documents with a hard cost ceiling — an honest test of whether the design works when the questions are real.

Who this is for

  • You are a developer who wants to add AI features that survive contact with real users.
  • You have built a prototype with a chat assistant and need it to be reliable and affordable.
  • You are preparing to work on AI products for a Ghanaian company or for clients abroad.

Before you start

  • Comfortable JavaScript or Python, including calling an HTTP API from a server.
  • Some experience with a backend and a database — Backend Development with Node.js or equivalent.
  • A model API key with a small credit balance for the exercises.

Where it leads

  • System Design & Architecture is the next step for putting an AI service into a larger system.
  • DevOps & Delivery keeps the model bill and the error rate visible in production.
  • AI engineering is the fastest-growing job title in the market, and RAG, evals and cost control are what interviewers ask about.

Tools you will use

A model API (OpenAI, Anthropic, Google or an open model host)Node.js or Python for the backendA vector index for retrievalAn evaluation script and a cost dashboardGit and GitHub

What you will build

  1. 1A backend endpoint that calls a model with validation and rate limits
  2. 2A retrieval pipeline over your own documents, with citations
  3. 3A simple agent with tools it cannot misuse
  4. 4Evaluations that measure accuracy, latency and cost per answer
  5. 5A support assistant with a hard cost ceiling and a fallback for failures

Curriculum

2 modules · 6 lessons · 2h

Sign in to open each lesson

01 · Wiring AI into an app

The API call, the prompt and your own data.

1. Calling a model from your server

Every AI feature in production is still a program: a request with inputs, a timeout, a failure mode, and a cost — wrapped around one call to a model that may not answer the way you hoped. This lesson covers where the call belongs (always behind your server), the request/response shape of a modern chat API, streaming and why it changes perceived latency, timeouts, retries, fallbacks and refusal handling, structured outputs, token accounting, and the caching that makes the economics work. The model is the easy part; the engineering around it is the job.

20 min

2. The prompt is product surface

When your product's behaviour is a prompt, the prompt is not a string in a file — it is the specification of what users experience, and it deserves the discipline the earlier courses gave to any other specification: versioned, reviewed, tested, and changed with evidence. This lesson covers system prompts as product constitution, structuring instructions for models, guardrails as code rather than prose, prompt-injection defences, few-shot examples as design, change management for prompts, and the tooling that makes prompt work legible. Users feel every word; treat the words accordingly.

20 min

3. Your own data: retrieval (RAG)

Models do not know your product, your documents or last week's decisions — and fine-tuning is rarely the right answer for facts that change. Retrieval-augmented generation fixes this by finding the few passages that matter and putting them in the prompt, so answers are grounded in your corpus with citations to prove it. This lesson covers chunking, embeddings and vector search, when retrieval helps and when it doesn't, hybrid search and reranking, building a citation-first pipeline, and the failure modes — stale indexes, retrieval misses, injected documents — with their fixes. Ground every answer, or label it as guessing.

20 min

02 · Agents and guardrails

Tools, evals, cost and the safety rules that let you ship.

1. Tools and agents

Giving a model tools — functions it can call — turns a text generator into a system that acts on the world, and every security lesson you have ever had becomes relevant at once: the model proposes, your code decides, and the permission checks live on your side of the boundary. This lesson covers tool design, the agent loop, permissions and confirmation for consequential actions, memory and planning, idempotency for model-driven writes, and the failure modes unique to autonomous action. The power and the risk are the same thing — design them together.

20 min

2. Evals, latency and cost

AI features fail softly: a prompt change, a model update or a data shift degrades quality *without a single test turning red* — unless you built the instrument that notices. This lesson covers building an eval suite from your real behaviour requirements, measuring retrieval and generation separately, the three budgets every AI feature has (money, latency, quality), instrumentation for all three, and the optimisations that move them — caching, smaller models by task, batching. You cannot improve what you do not measure, and you cannot ship what you cannot afford.

20 min

3. Safety, privacy and shipping

Shipping AI means deciding what it may never see, never say and never do — and making those decisions in code and policy rather than hoping the prompt holds. This lesson is the pre-launch pass: harm scenarios and their mitigations, data protection across the whole pipeline, content moderation and output filtering, human oversight for consequential actions, incident response for AI-specific failures, and the audit and policy artefacts stores and regulators now expect. Safety is a set of engineering decisions with owners, tests and dates — which is what makes shipping defensible.

20 min

6 lessons, including the a support assistant that answers from your own documents, with a cost ceiling project. Sign in and buy the program to open them. Create an account to track progress and earn the certificate.

Taught by a working engineer

Kojo Asante — AI Engineer. Every lesson is written to be used, not just watched.

A verifiable certificate

Complete every lesson and you get a certificate with a code and QR that an employer can check in seconds.

Practice in the Code Lab

Write and run code in the browser while you learn, with your work saved to your own account.

Still have a question?

Email hello@codemasterghana.com or send a message from the contact page — we answer within two working days, in English or Twi.