Latest writings
Notes on AI agents, Salesforce, automation, micro-SaaS, and engineering.

How to Build Your Own AI Image Generation API with Cloudflare Workers
Deploy your own text-to-image endpoint on Cloudflare Workers AI: one small Worker, a secret API key, an AI binding, and calls from cURL, JavaScript or n8n.
OpenAIChatGPT for Developers: A Practical Guide to Building Better Workflows
How developers can use ChatGPT and the OpenAI API in daily work: prompt patterns that hold up, the Responses API in Python, structured outputs, a repeatable pipeline, and where not to use it.

Why Use Gemini for AI Automation: A Builder's Comparison
When Gemini is the right model for automation workflows and agents: current models, verified pricing, native multimodal input, long context, tool calling, and where other models fit better.

AI in Content Marketing: How I Build a Content Pipeline with n8n
A builder's guide to AI content automation with n8n: a sheet as the queue, one LLM call with a strict JSON contract, a Code node parser, and drafts in Google Docs.

Graph Engineering For AI Agents: My Production Playbook
Model your agent as a graph: an execution graph in LangGraph for control flow and failure paths, and a knowledge graph for memory you can trace, with a runnable example.

AI Agents in Enterprise Automation: A Founder's Field Guide
How to take an AI agent from demo to dependable: start from the process, route low-confidence work to people, keep actions in plain code, and log every decision.
SalesforceSalesforce Agentforce Interview Questions: Prompt Builder, Data 360 and AI
Salesforce AI interview questions on Agentforce, Prompt Builder, Data 360 (formerly Data Cloud), grounding, guardrails and LLM callouts, with model answers.
ApexSalesforce Interview Preparation: Apex, LWC, Triggers & System Design
A practical guide to Salesforce interview preparation covering Apex, triggers, SOQL, LWC, integration patterns, and system design for developers.

How I Build Applications Faster with Supabase
How Supabase's Postgres APIs, auth, realtime and storage fit together, plus migrations, Row Level Security, Edge Functions, plan limits and the pitfalls to avoid.

Building Long-Term Memory: Setting Up Vector Databases for Semantic Search in LangChain
Split your text, embed it, store it in Chroma and search it by meaning with LangChain. Then add MMR for varied results, a Pinecone option and a small RAG chain.

Unmasking the Black Box: Mastering LangChain Callbacks for Debugging
See inside a LangChain agent with callbacks: print every step, write a custom audit handler, count tokens, avoid async mistakes and send traces to LangSmith. Handlers tested with a fake model.

Best Practices for Deploying LangChain Apps to Production
Serving, streaming, per-user state, caching, tracing, evals, secrets and timeouts: a checklist for moving a LangChain 1.x agent out of the notebook.

Structured JSON Output from LLMs: Schema Injection, Pydantic and Retry Loops
Get reliable JSON from an LLM: put the schema in the prompt, use structured outputs with a Pydantic model, and add a retry loop that sends errors back.

Beyond Built-ins: Architecting Custom Tools in LangChain
Build custom LangChain tools two ways, the @tool decorator and a BaseTool subclass with a Pydantic schema, then handle tool errors so the agent can fix its own mistakes.

Architecting Autonomous Agents: A Builder’s Guide to Complex Workflows
How an AI agent loops through thought, tool call and observation, how to build one with LangChain's create_agent, and the guardrails that stop loops, bad arguments and context overflow.

Building State: A Deep Dive into LangChain Memory for Conversational AI
Add memory to a LangChain chatbot the current way: a checkpointer for chat history, a trimming window, SummarizationMiddleware and the Store API, all tested with a fake model.

Building Robust RAG Pipelines: A Deep Dive into LangChain Document Loaders
Load PDFs, CSVs, web pages and folders into LangChain Documents, keep the metadata you need for citations, and split the text into chunks for a RAG pipeline.

What Is LangChain? When to Use It and When to Write Your Own Code
What LangChain 1.x gives you today (create_agent, middleware, a standard model interface) and a plain framework for deciding between it and your own code.

Building Your First LLM Chain: A Developer's Guide to Sequential Logic
Build a two-step LLM chain in Python with LangChain's pipe syntax: one prompt picks an angle, the next writes the post. Tested with a fake model, no real API key needed.

Beyond the Tags: Mastering HTML Architecture for Product-Based Roles
Semantic block elements, the accessibility tree, and how link and script tags affect rendering, with async, defer and module compared and a semantic page boilerplate.

From Selectors to BEM: CSS Concepts You Must Know for Professional Projects
Learn how CSS specificity works, why nested selectors cause style fights, and how BEM's block, element and modifier classes keep a stylesheet flat and predictable.

Mastering the Primitives: A Builder's Guide to JavaScript Data Types and Functions
Learn how JavaScript stores primitives and objects, why shared object references cause bugs, and how to write a function that copes with messy input safely.

Overcoming the Daunting Start: A Strategic Roadmap for New Frontend Developers
A five-phase frontend roadmap for beginners: HTML and CSS layout, core JavaScript, Git and npm, React with Vite or a framework, then TypeScript, with a project per phase.

Demystifying Scope and Closure: Key Concepts for Writing Robust JavaScript
Learn how JavaScript decides which variables a function can see, how closures keep them alive, and how to use that for private state, factories and caching.