Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Building AI Agents The Better Way

Blog post from PubNub

Post Details
Company
Date Published
Author
Stephen Blum
Word Count
407
Language
English
Hacker News Points
-
Summary

Developers often build AI agents using simple text input and output, which limits their capabilities. A more effective approach involves function or tool calling to produce deterministic JSON output, allowing AI agents to automate workflows and perform tangible actions rather than just providing explanations. This method enables agents to return information in organized formats, execute multiple tasks consecutively, and integrate seamlessly with other systems. Function calling enhances the ability of AI to solve real-world problems, as demonstrated by practical applications like the Waldo Finder, which identifies objects in images, the Chart Reader, which analyzes graphs, and the AI Auditor, which detects and corrects data inconsistencies. This advanced approach is supported by major AI platforms such as Anthropic Claude, Google Gemini, and gpt-oss models, providing structured, reliable responses and enabling complex process automation.