Skip to content

Apollo-Level2-Web-Dev/agentic-ai-crash-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agentic AI Crash Course

A beginner-friendly crash course on building Agentic AI applications using Node.js, the OpenAI SDK, and OpenRouter for model routing.


What is Agentic AI?

Agentic AI refers to AI systems that can autonomously plan, reason, and take actions to accomplish goals — going beyond simple question-answering to actively interacting with tools, APIs, and environments.


Project Structure

agentic-ai-crash-course/
├── backend/
│   ├── ai-agents.js      # Main AI agent script
│   ├── package.json      # Node.js dependencies
│   └── pnpm-lock.yaml    # Lockfile (pnpm)
└── README.md

Tech Stack

Tool Purpose
Node.js JavaScript runtime
OpenAI SDK API client for chat completions
OpenRouter Unified API gateway for multiple LLMs
dotenv Environment variable management
pnpm Fast, efficient package manager

Getting Started

Prerequisites

Installation

# Clone the repository
git clone <REPO_URL>
cd <REPO_NAME>/backend

# Install dependencies
pnpm install

Configuration

Create a .env file in the backend/ directory:

OPENROUTER_API_KEY=your_openrouter_api_key_here

Run

node ai-agents.js

How It Works

ai-agents.js initializes the OpenAI client pointed at the OpenRouter base URL, then sends a chat completion request to the stepfun/step-3.5-flash:free model asking "What is Agentic AI?". The response is printed to the console.


Resources

Agentic AI

OpenRouter

OpenAI SDK

Node.js & Tooling


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors