Generative AI for beginners with JavaScript

October 10, 2025 · View on GitHub

Generative AI for beginners with JavaScript

License Watch the video series PRs Welcome

Azure AI Discord

Azure AI Foundry Developer Forum

⭐ If you like this repo, star it on GitHub — it helps a lot!

Getting StartedLessonsKeep Learning

Ready to integrate Generative AI into your JavaScript apps?

This course throws you into a time-traveling adventure—meet history’s legends with a fun twist, while learning Generative AI technologies ✨

Important


Open-source vibes! Reuse, tweak, and share this content freely.

Character App Sneak Peek

NEW - MCP lessons just added

Call for help - help us translate !

Help us translate this course. Each lesson in lessons/ folder has a translations/ directory. Add your translation file like so README.<language code>.md, for example README.es.md. - Thank You.

Step into history with AI magic!

Dive into an immersive learning experience powered by Generative AI:

  • Learn about Generative AI technologies. If you've wanted to understand Generative AI and the potential for your applications, you're in the right place!

  • Epic Time-Travel Stories. Dive into a fun tale, chatting with icons like Leonardo da Vinci, Ada Lovelace, or Montezuma in every lesson.

  • Companion App. Interact with historical figures using Generative AI technologies (see our Responsible AI disclaimer).

    Interact with History through conversation

    Check the app directory to run the app locally or use GitHub Codespaces to run it online.

  • Accessibility FTW. Read it, hear it—audio tags bring it to life.

“It’s like a comic book with code!” — Happy User

Getting started

Throughout this course you'll find many code examples and exercises, so we encourage you to run and experiment with the code in your own copy of this repository:

  1. Select the Fork button in the upper right-hand corner of the repository or select this button: Fork

  2. Click the Code button in your forked repository, go to the Codespaces tab, and then choose Create codespace.

    This will create a preconfigured online environment for you. You'll then be able to use GitHub Models to run the code examples and interact with AI models for free, without any additional setup.

Note

While GitHub Codespaces provides a quick and easy starting point you can also run the code samples locally.

Learn more about GitHub Codespaces and GitHub Models concepts here.

Lesson description

📦 Each lesson includes:

  • A written lesson with an assignment and quiz.
  • A short video to help further your learning.
  • Solutions for each assignment and quiz.
  • Characters you can interact with using our companion app, demonstrating Generative AI.

Lessons

🗃️ Table of contents

#Lesson LinkDescription
1Introduction to Generative AI and LLMs for JavaScript DevelopersUnderstand Generative AI and LLM fundamentals, their applications and limits in JavaScript, and how to use AI to enhance user experiences.
2Build your first AI appSet up your development environment, write a basic app, and understand system prompts.
3Prompt engineeringLearn Prompt engineering fundamentals, techniques, and meta-prompts for better AI outcomes.
4Structured outputLearn structured output, how to extract data from prompts, and present it in various formats, such as JSON, for easier consumption.
5Retrieval augmented generation (RAG)Learn the basics of RAG, how to integrate external data, and how to leverage it for more relevant, accurate AI responses.
6Tool calling/Function callingLearn how to give your LLM extra capabilities, bring your own functions
7MCP, Model Context Protocol Teaches how to get started with MCP to standardize how to expose prompts, resources and tools
8Enhancing MCP Clients with Large Language ModelsLearn how to improve your MCP app by improving clients with LLM and more

New lessons will be added to the course over time, so stay tuned!

Keep learning

🙌 After completing this course, you can continue learning by exploring our additional resources.

🎬Video Series
#SessionDescriptionSlidesDemoScriptVideo
0Series introductionIntroduces the series and its content.pptx / pdf-Script📺
1What you need to know about LLMsExplores what LLMs are, how they're trained, how they work and their limits.pptx / pdfDemoScript📺
2Essential prompt engineering techniquesPractical prompt engineering techniques to get the best out of AI models.pptx / pdfDemoScript📺
3Improve AI accuracy and reliability with RAGIntroduces Retrieval-Augmented Generation, to use AI with your own data.pptx / pdfDemoScript📺
4Speed up your AI development with LangChain.jsCovers LangChain.js framework core concepts, and how to use it to accelerate AI developments.pptx / pdfDemoScript📺
5Run AI models on your local machine with OllamaShows how to integrate local AI models into your development workflow.pptx / pdfDemoScript📺
6Get started with AI for free using Phi-3Experiments with Ollama and Phi-3 model directly from your browser.pptx / pdfDemoScript📺
7Introduction to Azure AI FoundryKickstart your journey with Azure AI Foundry.pptx / pdfDemoScript📺
8Building Generative AI Apps with Azure Cosmos DBBuild generative AI apps with Azure Cosmos DB and vector search.pptx / pdfDemoScript📺
9Azure tools & services for hosting and storing AI appsBuild, deploy, and scale AI applications using Azure tools.pptx / pdf-Script📺
10Streaming Generative AI output with the AI Chat ProtocolIntegrate streaming easily into your apps with the AI Chat Protocol.pptx / pdfDemoScript📺

To see the full page of resources, go to this video overview page.

You'll also find additional resources in the form of tutorials, code samples and more.

Responsible AI Disclaimer

Important

DISCLAIMER: This repository contains fictional content generated by AI. The historical characters depicted here are generating responses thanks to generative AI, which is based on training data. Any responses generated by these characters do not represent their actual views or quotes. This content is intended solely for entertainment purposes. Microsoft Responsible AI principles here

🎒Other Courses

Getting Help

If you get stuck or have any questions about building AI apps, join:

Azure AI Foundry Discord

If you have product feedback or errors while building visit:

Azure AI Foundry Developer Forum