Beginner’s Guide to Agentic AI: AI Agents + Tools Made Simple
CSE Student & a Passionate Coder
What is Agentic AI?
Agentic AI = AI + Agency (the ability to act on its own)
Instead of just answering questions (like ChatGPT), an agent can:
Think → break a problem into steps
Decide → choose the right approach
Act → use tools or code to get results
👉 Example:
A normal chatbot: “The weather in New York is 28°C.”
An Agentic AI: Actually goes online → checks the live weather API → then tells you the result.
How Do AI Agents Work?
Think of an agent as a student solving a problem step by step:
Start → Understand the question.
Think → Break it into smaller tasks.
Use Tools → Like calculator, Google, or code.
Observe → Check results.
Output → Give you the final answer.
👉 Just like a human using a phone + notes + internet to solve a task.
The Role of Tools in Agentic AI
Tools are like weapons for AI agents 🔧
Without tools → AI can only “talk”
With tools → AI can act in the real world
Examples of tools an AI agent might use:
Weather API → to fetch real-time weather
GitHub API → to check user profiles
Terminal commands → to run code or create files
Code Example: Simple Agent Using Tools
Here’s a small Node.js code snippet showing an Agentic AI that can:
Get weather info
Fetch GitHub user data
Run system commands
import "dotenv/config";
import { OpenAI } from "openai";
import axios from "axios";
import {exec} from "child_process";
async function getWeatherDetailsByCity(cityName = "") {
const url = `https://wttr.in/${cityName.toLowerCase()}?format=%C+%t`;
const { data } = await axios.get(url, { responseText: "text" });
return `The temperature in ${cityName} is ${data}`;
}
async function getGithubUserInfoByUsername(username = "") {
const url = `https://api.github.com/users/${username.toLowerCase()}`;
const { data } = await axios.get(url);
return JSON.stringify({
login: data.login,
id: data.id,
name: data.name,
location: data.location,
followers: data.followers,
following: data.following,
});
}
async function executeCommand(cmd = '') {
return new Promise((res, rej) => {
exec(cmd, (error, data) => {
if (error) {
return res(`Error running command ${error}`);
} else {
res(data);
}
});
});
}
const TOOL_MAP = {
getWeatherDetailsByCity,
getGithubUserInfoByUsername,
executeCommand
};
// Example Agent Flow: Understand → Think → Use Tool → Output
👉 Notice how the agent doesn’t just give answers — it actually uses external tools to fetch and return data. Here is the sample System Prompt
const SYSTEM_PROMPT = `
You are an AI assistant who works on START, THINK and OUTPUT format.
For a given user query first think and breakdown the problem into sub problems.
You should always keep thinking and thinking before giving the actual output.
Also, before outputing the final result to user you must check once if everything is correct.
You also have list of available tools that you can call based on user query.
For every tool call that you make, wait for the OBSERVATION from the tool which is the
response from the tool that you called.
Available Tools:
- getWeatherDetailsByCity(cityname: string): Returns the current weather data of the city.
- getGithubUserInfoByUsername(username: string): Retuns the public info about the github user using github api
- executeCommand(command: string): Takes a linux / unix command as arg and executes the command on user's machine and returns the output
Rules:
- Strictly follow the output JSON format
- Always follow the output in sequence that is START, THINK, OBSERVE and OUTPUT.
- Always perform only one step at a time and wait for other step.
- Alway make sure to do multiple steps of thinking before giving out output.
- For every tool call always wait for the OBSERVE which contains the output from tool
Output JSON Format:
{ "step": "START | THINK | OUTPUT | OBSERVE | TOOL" , "content": "string", "tool_name": "string", "input": "STRING" }
Example:
User: Hey, can you tell me weather of Patiala?
ASSISTANT: { "step": "START", "content": "The user is intertested in the current weather details about Patiala" }
ASSISTANT: { "step": "THINK", "content": "Let me see if there is any available tool for this query" }
ASSISTANT: { "step": "THINK", "content": "I see that there is a tool available getWeatherDetailsByCity which returns current weather data" }
ASSISTANT: { "step": "THINK", "content": "I need to call getWeatherDetailsByCity for city patiala to get weather details" }
ASSISTANT: { "step": "TOOL", "input": "patiala", "tool_name": "getWeatherDetailsByCity" }
DEVELOPER: { "step": "OBSERVE", "content": "The weather of patiala is cloudy with 27 Cel" }
ASSISTANT: { "step": "THINK", "content": "Great, I got the weather details of Patiala" }
ASSISTANT: { "step": "OUTPUT", "content": "The weather in Patiala is 27 C with little cloud. Please make sure to carry an umbrella with you. ☔️" }
`;
Benefits of Agentic AI
Real-time accuracy → Uses APIs to fetch live data
Autonomy → Can solve multi-step problems without human help
Productivity → Runs code, automates workflows, executes commands
Scalability → Used in business automation, research, customer support
Key Takeaways
Agentic AI = AI with the power to act
Agents follow a loop of thinking → acting → observing
Tools make agents smarter and more useful
You can build your own agents using APIs, commands, and workflows
FAQs
Q1. What makes Agentic AI different from ChatGPT?
👉 ChatGPT just chats. Agentic AI can take actions using tools.
Q2. Can I build my own Agentic AI?
👉 Yes! With frameworks like LangChain, AutoGPT, or custom Node.js scripts.
Q3. Where is Agentic AI used in real life?
👉 Customer support, workflow automation, research assistants, DevOps bots, and more.
✅ And that’s Agentic AI simplified. With agents, AI is no longer just “talking” — it’s thinking + acting + using tools.

