Large Language Models (LLMs) have changed the way we interact with software. We can generate text, summarize articles, and even write code with a simple prompt. But what happens when the task is more complex than a single request-response? What if you need an AI that doesn't just answer a question, but actively achieves a goal?
This is where the next evolution of AI comes in: Agentic AI. It's the shift from conversational chatbots to autonomous problem-solvers. Instead of just generating text, these agents can reason, create a plan, use tools, and execute multi-step tasks to reach a desired outcome.
Welcome to thinking.do, the cognitive automation engine designed to make this power accessible to every developer. In this guide, we'll show you how to go beyond basic prompts and build your first cognitive agent in less than 10 minutes.
The fundamental difference between a standard LLM API and an agentic platform like thinking.do lies in the objective.
This is the core of Cognitive Automation. It's not just about language; it's about task completion. The LLM acts as the "brain" or reasoning core, but the platform provides the framework for planning, memory, and tool usage that enables true problem-solving.
Theory is great, but let's get practical. We're going to build an AI agent that can perform real-time market research—a task that would normally take a human analyst hours of work.
Our Goal: Analyze recent tech news, identify the top 3 emerging AI trends, and write a one-paragraph summary for each.
First, you'll need the thinking.do SDK. Assuming you have Node.js installed, simply run:
npm install @do/sdk
Now, create a new TypeScript file (e.g., market-analyst.ts) and paste in the following code. It's remarkably simple.
import { Agent } from '@do/sdk';
// Initialize your connection to the cognitive engine
const thinker = new Agent('thinking.do');
async function analyzeMarketTrends() {
console.log('Agent is starting to think...');
const result = await thinker.run({
goal: 'Analyze recent tech news, identify the top 3 emerging AI trends, and write a one-paragraph summary for each.',
tools: ['web.search', 'document.summarize']
});
console.log('Analysis Complete! Here are the results:');
console.log(JSON.stringify(result.output, null, 2));
// Expected Output Structure:
// {
// "trends": [
// {
// "trend": "Large-Scale Multimodal Models",
// "summary": "Leading AI labs are developing models..."
// },
// {
// "trend": "On-Device AI and Edge Computing",
// "summary": "There is a significant push to run powerful..."
// },
// {
// "trend": "Generative AI in Enterprise",
// "summary": "Businesses are increasingly adopting..."
// }
// ]
// }
}
analyzeMarketTrends();
Execute the file from your terminal:
npx ts-node market-analyst.ts
That's it! In a few moments, your agent will return a structured JSON object containing a clean, concise, and up-to-date analysis of AI market trends.
While the code looks simple, a complex cognitive workflow just took place. The thinking.do engine didn't just "answer" your goal—it executed a plan.
The best part? This entire reasoning process isn't a "black box." With thinking.do, you get full transparency into the agent's plan and every step it took, allowing for complete observability and control.
This simple market analyst is just the beginning. Because thinking.do is an extensible Problem Solving API, you can build agents for virtually any complex digital task:
By allowing you to securely connect your own private data, internal APIs, and custom functions, you empower agents to operate with the full context of your business.
Ready to go beyond prompts and start achieving goals?
Visit thinking.do to get your API key and build your first cognitive agent today!