Skip to content
Shahid Malla

29 guides, newest first

AI guides.

Plain guides to AI agents, chatbots, RAG and AI automation for businesses and developers: what each one is, when it is worth it, and how to build it. Written by Shahid Malla, who builds AI agents for WHMCS, WordPress, SEO and server work and founded MagizAI.

Written by Shahid Malla
12 min

How to Extract Data From PDFs and Invoices With AI

Text PDFs against scans, the four approaches compared, a JSON schema for invoices, the arithmetic and date checks that catch model errors, a review queue for low-confidence fields, and what each cloud service keeps.

Shahid Malla Nov 26, 2026
11 min

How to Integrate AI Into an Existing App or Website

Adding AI to an app you already run is an engineering job, not a research one. What it takes, the pattern to pick, why the key never belongs in the browser, streaming, retries, spend caps, evaluation and rollback.

Shahid Malla Nov 25, 2026
12 min

How to Reduce AI Hallucinations in Chatbots and Agents

AI hallucinations cannot be switched off, but they can be made rare and catchable. The research on why models guess, and the five controls I build into every chatbot and agent.

Shahid Malla Nov 24, 2026
12 min

AI for Customer Service Emails: Drafts, Approval and Tone

AI for customer service emails works best as a draft a human approves. Which emails are safe to automate, how to ground a reply in your help center and order data, brand tone rules, approval queues, and what to measure.

Shahid Malla Nov 23, 2026
12 min

What Is Prompt Injection? Examples and How to Defend an AI App

Prompt injection is text an AI app reads being treated as an instruction. Here are the direct and indirect forms, examples from the OWASP list, why no filter solves it, and the defenses that cap the damage.

Shahid Malla Nov 23, 2026
12 min

LLM Function Calling Explained, With a Safe Example

The model proposes a function call, your code runs it. A working guide to LLM function calling: tool schemas, validating arguments, when to ask a person first, errors and retries, and how it relates to MCP.

Shahid Malla Nov 21, 2026
11 min

Fine-Tuning vs RAG vs Prompt Engineering: Which to Use

The three levers fix different faults, so the question is which fault you have. What each one changes, the data and effort it needs, how fast you can update it, and what the published experiments actually measured.

Shahid Malla Nov 21, 2026
12 min

AI Ticket Triage: Sort and Route Support Tickets Automatically

AI ticket triage sets the department, category, urgency, language and sentiment on a new ticket. What rules should still decide, how to pick a confidence threshold, and what a hosting desk must never automate.

Shahid Malla Nov 20, 2026
12 min

Is It Safe to Put Company Data in ChatGPT?

The honest answer to whether company data is safe in ChatGPT, checked against the vendors' own privacy pages: which plans train on your text, how long each keeps it, what never to paste, and where NDAs come in.

Shahid Malla Nov 19, 2026
12 min

How to Test an AI Chatbot or LLM App Before Launch

A chatbot that answers your five favorite questions well is not tested. Five steps an owner can run in an afternoon, then the developer detail: test sets, rubrics, graders, prompt injection and the handover.

Shahid Malla Nov 19, 2026
11 min

What Is a Token in AI? How Tokens Set Cost and Context Limits

A token is the unit a model splits your text into before it reads anything. How tokenization and subword vocabularies work, why two models count one sentence differently, and a worked monthly token bill.

Shahid Malla Nov 18, 2026
12 min

What Is a Vector Database? A Plain Guide for RAG and AI Search

A vector database finds the stored items whose numbers sit closest to your question. I explain embeddings, similarity search, the recall you give up to an HNSW index, metadata filters, and when Postgres is enough.

Shahid Malla Nov 17, 2026
11 min

AI SEO Agents: What They Can Automate and What Needs a Human

An AI SEO agent can read Search Console, crawl a site and make small reversible page edits on its own. Link building, outreach and strategy cannot be handed over. Where the line sits, and why.

Shahid Malla Nov 16, 2026
11 min

How Much RAM Do You Need to Run an LLM Locally?

The memory math for a local LLM: parameters times bytes per weight at 16-bit, 8-bit and 4-bit, what the context cache adds, VRAM against Apple unified memory, and worked numbers for 8B to 70B models.

Shahid Malla Nov 16, 2026
12 min

How to Train ChatGPT on Your Own Data: The Options Compared

Training ChatGPT on your own data is rarely training. I compare the options a business actually has, with the limits, privacy settings and running costs I read on the vendors' own pages today.

Shahid Malla Nov 15, 2026
12 min

What Is MCP (Model Context Protocol)? A Plain-English Guide

A plain-English guide to the Model Context Protocol: host, client and server, tools versus resources, which AI apps accept MCP servers, when you need one, what drives cost and the security risks.

Shahid Malla Nov 3, 2026
12 min

How to Build an AI Agent for Your Business, Step by Step

The eight steps I follow to build a business AI agent: one job with a finish line, a tool inventory, workflow or agent, model and SDK choice, read-only tools and approvals, a real test set, and a supervised launch.

Shahid Malla Nov 3, 2026
12 min

Does Google Penalize AI-Generated Content? What Google Says

Google does not penalize content just because AI wrote it, but it does act against scaled, low-value pages. What Google's own pages say, where the line sits, and a checklist for using AI safely.

Shahid Malla Nov 3, 2026
12 min

AI Automation for Small Business: What to Automate First

Eight small-business tasks ranked by payoff and risk, with whether each needs AI or plain rules, where a human must approve, which data never goes to a model, and how vendors treat your data.

Shahid Malla Nov 3, 2026
11 min

WhatsApp Chatbot Cost: Build, Meta Fees and AI Running Costs

The three bills behind a WhatsApp AI chatbot: the build, Meta's per-message fees with US, UK and EU rates, and AI model usage, worked through for one month.

Shahid Malla Oct 28, 2026
13 min

Is Your Website AI-Ready? A Checklist for AI Search and AI Agents

A checklist for an AI-ready website: crawler access, the newer Search Console and Cloudflare AI settings, pages AI can read, forms agents can use, and how to measure it.

Shahid Malla Oct 27, 2026
12 min

What Is a RAG Chatbot? How It Answers From Your Own Documents

A RAG chatbot looks up your own documents before it answers. I explain each step in plain words, when fine-tuning or a long prompt fits better, why RAG answers go wrong, and what to ask about data and cost.

Shahid Malla Oct 25, 2026
11 min

ChatGPT SEO: How to Show Up in ChatGPT Search, Perplexity and Copilot

What OpenAI, Perplexity, Microsoft and Anthropic say a site needs to be found and cited by their AI search, which popular tactics are myths, a technical checklist and how to measure AI referral traffic.

Shahid Malla Oct 23, 2026
12 min

AI Chatbot for Your Website: Ready-Made Tool or Custom Build?

Most site owners choose between a hosted AI chatbot tool on a monthly plan and a custom bot trained on their own content. I compare four real tools' plans and limits, the costs of each route, and how to judge answers.

Shahid Malla Oct 20, 2026

Want it done for you?

AI chatbot development

I do this work for clients. See what is included, how it works and how to start.

See AI chatbot development