Wednesday, March 4, 2026

Prompt Engineering and its Wily Ways

This week I’ll take some time out from AIO and talk about some basics that I’ve been getting to grips with in my day job, particularly over the last year. Prompt Engineering has appeared from nowhere and the more you dig in, the more I find that there is just a ton of techniques and methods that can really make a difference in what you get back from AI. Sure you can treat it just like a Google search, but it can do a whole lot more…

What is an AI Prompt?

In the context of generative AI, a “prompt” is most often text, but can also be other modes like images or voice commands, that are provided to an AI model to elicit a specific response or prediction. It serves as the primary interface for interacting with Large Language Models (LLMs), acting as a form of "coding in English" where the user defines the task, context, and constraints for the AI to process.

In other words, it's not just like something you'd type into a Google search, it can be a whole lot more. Possibly review your Resume and re-write it in a particular manner, summarize a website article or even produce something out of a hat like a unique poem or story.

Why Take Time to Develop Them?

It’s easy to use this like a standard Google search and that’s totally fine too. However you can really unleash the power of AI by investing some time in “prompt engineering” which is described as more of an art than a science, often requiring experience and intuition to master. This iterative process is necessary for several reasons:

To Ensure Accuracy. LLMs function as prediction engines, generating the next most likely text based on their training data. Without a high-quality prompt to guide this prediction, the model may produce ambiguous, inaccurate, or irrelevant outputs.

It forces you to write very accurate instructions to ensure a more predictable result and this is a good practice for all walks of life.

To Navigate Sensitivity. Models are highly sensitive to word choice, tone, structure, and context; even small differences in phrasing or formatting can lead to significantly different results.

To Define Boundaries. A well-developed prompt helps the user understand the model's capabilities and limitations, allowing them to improve safety and reduce the likelihood of "hallucinations" (fabricated information). AI can lie very effectively, so don't give it a fraction of a chance to do it.

To Optimize Resources. Poorly designed prompts can lead to excessive token generation, which increases latency and computational costs. Refined prompts can enforce conciseness and specific output structures (like JSON) that make the data more usable.

Ultimately it’s always best to be absolutely clear on what you are asking the AI to do, giving it no possibility to go off and get creative with its answer.

Prompt Design

Designing high-quality prompts is an iterative process that blends art and engineering. The best practices for prompt engineering can be categorized into structural frameworks, instructional strategies, technical configuration, and process management.

Structural Frameworks

To maximize effectiveness, prompts should follow a logical structure rather than being a loose collection of sentences. Several frameworks are recommended:

The Structured Approach

This formula involves four key components:

    1.  Role and Goal - Broadly describe the aim and the persona the model should adopt.

    2.  Context - Provide background information.

    3.  Task - Make expectations explicit and detailed.

    4.  Reference Content - Supply the data or text the AI needs to process.

The C.R.E.A.T.E. Framework

A mnemonic for drafting prompts that stands for Character (role), Request (specific task), Examples, Additions (style/POV refinements), Type of Output, and Extras (context/reference text).

The Rhetorical Approach

This focuses on the "rhetorical situation," defining the audience, context, author ethos (credentials), pathos (desired emotional response), logos (logical points), and arrangement.

Instructional Strategies

How you phrase your request significantly impacts the model's performance.

Be Specific and Simple

Simplicity is a design principle; if a prompt is confusing to a human, it will likely confuse the AI model. You must be specific about the desired output to ensure the model focuses on what is relevant. Leave as little to interpretation as possible.

Use Instructions Over Constraints

It is generally more effective to give positive instructions (telling the model what to do) rather than constraints (telling it what not to do). Constraints should be reserved for safety purposes or specific formatting limits.

Provide Examples (Few-Shot)

Giving the model one or more examples (input and output pairs) is highly effective. It acts as a teaching tool, allowing the model to imitate the desired pattern, style, and tone. This is as simple as laying out a plain text example with a Heading, block of body text followed by some bullet points. It will use that format in its response. We will exploring prompting techniques in my next post.

Tip: For classification tasks, use at least six examples and mix up the classes (e.g., positive, negative, neutral) to prevent the model from overfitting to a specific order.

Break Tasks Down

For complex requests, split the task into smaller steps. For instance, instruct the model to first extract factual claims and then as a second prompt, verify them, rather than doing both in one pass.

Define the Role

Assigning a specific persona (e.g., "Technical Product Manager" "News Anchor" or "Industry Journalist") helps frame the output's voice and focused expertise.


Formatting and Syntax

The physical layout and syntax of the prompt help the model parse intent.


Use Clear Syntax

Utilize punctuation, headings, and section markers (like `---` or XML tags) to differentiate between instructions, context, and reference data.

Combat Recency Bias

Models can be influenced more heavily by information at the end of a prompt. It is often helpful to repeat instructions at the end of the prompt or place the primary instructions before the data content.

Prime the Output (Cues)

You can "jumpstart" the model's response by providing the first few words of the desired output. For example, ending a prompt with "Here is a bulleted list of key points:" guides the model to immediately start listing items.

Structured Output (JSON/XML)

Requesting output in specific formats like JSON limits hallucinations and creates structured data that is easier to integrate into applications. For the real techies out there, if the JSON output is truncated or malformed, libraries like json-repair can help salvage the data.


Technical Configuration

Beyond the text, model settings play a crucial role in the output quality.


Temperature and Top-P (controlling randomness)

These are known as hyper-parameters and the difference between them is quite subtle.

The temperature parameter is used in language models to control the randomness of the generated text. It controls how much the model should take into account low-probability words when generating the next token in the sequence. For tasks requiring factual accuracy (like math or code), set the temperature to 0 or a very low number. For creative tasks, higher temperatures (e.g., 0.9) encourage diversity.

The top_p parameter can also be used to control the randomness of the outputs. Top_p sampling is also called nucleus sampling, in which a probability threshold is set (Default value =1 in the API). This threshold represents the proportion of the probability distribution to consider for the next word. In other words, It consists of selecting the top words from the probability distribution, having the highest probabilities that add up to the given threshold.

For example, if we set a top_p of 0.05, it means that the model, once it generated the probability distribution, will only be considering the tokens that have the highest probabilities, and sum up to 5%. Then the model will be randomly selecting the next token among these 5% tokens, according to its likelihood. The top_p sampling is highly correlated to the quality and the size of the dataset used to train the model. In Machine learning subjects, as there are huge datasets with good quality, the answers are not that different when modifying the value of top_p.

It is generally recommended to alter only one of these parameters (Temperature or Top-P) at a time, not both.

Note : Don't ask me to repeat that after a few beers.


Token Limits

Be mindful of output length. Generating excessive tokens increases cost and latency. You can control this via configuration settings or by explicitly instructing the model to be concise (e.g.I "Explain in a tweet length message").


Process Management

Prompt engineering is rarely perfect on the first try.


Iterate and Document

You should document every version of your prompt, including the model used, temperature settings, and the resulting output. This helps in debugging and refining performance over time. Keep them in a Google doc or simple text file.

Experiment with Variables

Use variables (e.g. `{city}`) in your prompts to make them dynamic and reusable across different inputs.

Collaborate

Have multiple people attempt to design prompts for the same goal; variance in phrasing can lead to discovering more effective techniques


Next up...

In the next post I will try and outline some prompting techniques, of which there are many.

Tuesday, February 24, 2026

Measuring Success in the Age of GEO

I am back after missing a week due to the day job! So, you devised your perfect GEO/AEO strategy and started writing your product content in conformance with the methodologies outlined in previous posts . Now comes the million-dollar question: Is it actually working?
Auditing your performance in the age of AI is tricky because the old scoreboard (Google Analytics) might be lying to you. Traffic might go down while your brand awareness goes up—simply because the AI answered the customer’s question without them ever needing to visit your site.
Here is a no-nonsense, friendly guide on how to audit your GEO and AEO efforts, the tools you can use, and how to fix the cracks in your strategy.


1. The "Ego Surf" Audit (Ask the AI)

The simplest way to audit your standing is to go directly to the source. You need to see if the "Generative Engines" (ChatGPT, Perplexity, Gemini, Claude) actually know who you are. Also, bare in mind that the AI models don’t reindex as often as the Google Search Index, so this is a long game.
The Action: Treat the AI like a potential customer.
Brand Audit: Ask, "What is {Your Company Name}?" or "What does {Your Company} sell?" If the AI hallucinates or says "I don't have enough information," you have an AIO (AI Optimization) problem. It means your digital footprint is too small or inconsistent.
Category Audit: Ask, "Who provides the best Service in {City}?" or "Compare {Your Product} vs {Competitor}".
The Goal: You aren't just looking for a mention; you are looking for sentiment and accuracy. Does the AI recommend you? Does it cite the right features? If it recommends a competitor, analyze why—is their pricing clearer? Do they have more reviews?


2. The Metric Shift: From Clicks to "Inclusion"

In traditional SEO, we obsess over Click-Through Rates (CTR). In AEO and GEO, we care about Source Inclusion and Visibility Scores.
Zero-Click Visibility: You need to track how often you appear in "Featured Snippets," "People Also Ask" boxes, or AI overviews. Tools like AIOSEO (for WordPress) or SEMrush can help track these specific SERP features.
Position-Adjusted Visibility: This is a fancy term for a simple concept: Did the AI mention you early in its answer? Research suggests that visibility is measured not just by if you were cited, but where and how much of your content was used. You want to be in the first paragraph of the AI’s script, not a footnote at the bottom.


3. The Toolkit: What to Use

You don't need to invent new technology to do this, but you do need to use existing tools differently.
AIOSEO (All In One SEO): If you are on WordPress, this plugin has a "Search Statistics" module. It helps you track keyword rankings specifically for content performance and identifies "content decay" (when your old posts stop ranking and need a refresh).
Using tools such as AIClicks and Profound, track AEO performance and monitor which products appear in AI citations, which content gets extracted most often, and what language patterns work best. Use these insights to refine your content templates, adjust attribute structures, and improve descriptions across similar products. Once you identify effective AEO patterns.
Question Research Tools: Use AnswerThePublic, SEMrush, or even your own customer support tickets. These tell you exactly what questions people are asking. If you aren't answering these specific questions on your site, you are invisible to the Answer Engine.
GPT-4 (as an Auditor): You can actually feed your content into ChatGPT and ask it to evaluate it against Google’s E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness) standards. Ask it, "How would you rate this article’s authority compared to Competitor {URL}?".


4. Corrective Actions: How to Fix Your Strategy

So, you audited your site and the AI is ignoring you. Here is how to get its attention.

Fix #1: The "Answer First" Adjust (AEO)

If you aren't winning featured snippets or voice search results, your content is likely buried.
The Fix: Rewrite your headers as questions (e.g., "How long does a drill battery last?") and provide the answer immediately in a concise, 40–60 word paragraph directly underneath. No fluff, no backstory. Just the answer.
Technical Boost: Use Schema Markup (like FAQPage schema). This is code that screams to the robot, "Here is the answer!" Tools like AIOSEO can generate this for you without you needing to code.


Fix #2: The "Citation Magnet" Move (GEO)

If the AI summarizes the topic but doesn't mention you, your content lacks authority signals.
The Fix: Add hard data. Don't say "Our software is fast." Say, "Our software processes data 30% faster than the industry average," and cite a source or internal study. Adding citations and statistics can increase your visibility in AI answers by 30-40%.
Quote Experts: Include direct quotations from industry leaders or your own experts. AI loves to pull quotes to build its "script".


Fix #3: The "Consensus" Cleanup (Off-Page Audit)

This is the big one. AI doesn't just trust your website; it trusts what the rest of the internet says about you. If you have great content but terrible reviews on Yelp or G2, the AI might skip you.
The Fix: Audit your N.A.P. (Name, Address, Phone) across all directories. Inconsistency confuses the AI. Then, actively drive happy customers to leave reviews on third-party sites. The AI looks for "consensus" across the web to verify you are a legitimate recommendation.


Summary Checklist

Ask the AI: regularly prompt ChatGPT/Perplexity to see how it describes your brand.
Track Snippets: Monitor how often you appear in "People Also Ask" or AI Overviews.
Inject Facts: Audit your top pages—if they are full of fluff, replace them with stats, tables, and direct answers.
Check the Vibe: Ensure your off-site reviews and directory listings are squeaky clean.

If you do this, you stop chasing clicks and start building the "influence" that gets you cited as the expert, but remember that this is built over time. Be patient!

Monday, February 9, 2026

Mastering the AI Trilogy: AEO, GEO, and AIO Optimization (AIO)


OK! Let's complete the trilogy. In previous posts I outlined how to be the Answer (AEO) and how to be the Recommendation (GEO). Now, we have to talk about the foundation that holds it all up: AI Optimization (AIO).

If you don't nail this, the other two don't matter because the AI won't even know you exist.



The Cheat Sheet: AEO vs. GEO vs. AIO

Let’s just again set out the terminology of the three strategies and how they stack up and support each other before we get into it:

  • AEO (The Words): Getting your specific text cited as the direct answer to a question (e.g., "Why is my Power Drill vibrating?"). You want to be the snippet.

  • GEO (The Choice): Getting your business recommended in a comparison (e.g., "Best Power Drill in theConstruction Industry"). You want to be the "friend" the AI suggests.
  • AIO (The Identity): Teaching the AI who you are. This is about Brand Knowledge. If the AI doesn't have a confident "mental model" of your business—your hours, your services, your location, it won't risk recommending you, no matter how good your blog posts are.

Think of it this way:

  • AEO is your script
  • GEO is your audition
  • AIO is your ID badge proving you’re actually allowed in the building.

AIO: The "Digital Tumbleweed" Problem

Here is the brutal truth: You could have the best website in the world, but if the rest of the internet is silent about you, you look like a "digital tumbleweed" to an AI.

AI models (like ChatGPT, Gemini, and Perplexity) rely on confidence. They hate hallucinating (making things up) when money or recommendations are on the line. If the AI isn't 100% sure you are a legitimate, active business, it will skip you and send your customers to the competitor it does know.

AIO is the process of filling in the "Knowledge Graph" gaps so the AI feels safe talking about you. Here is how to accomplish that.

1. Feed the Robot Your Resume (Structured Data)

If your website just says, "We make great pizza," the AI thinks, "According to whom? Your mom?". You need to speak the robot's native language to prove you are real.

  • The Move: Use Schema Markup (I need to dive into this in more detail in a separate post later, when I understand it better). This is invisible code that tells the AI, "I am a Restaurant," "I serve Neapolitan Pizza," and "I am open until 10 PM."

  • The Example: Don't just list your hours in plain text. Use "LocalBusiness" schema to hard-code your opening hours, address, and phone number. This helps the AI build a "Knowledge Card" about you so it doesn't have to guess.

  • Tool Tip: You don't need to be a coder. Plugins like AIOSEO (Wordpress) can generate this schema for you automatically.

2. The "Consensus" Strategy (Be Everywhere Else)

This is the part most businesses miss. AI trusts the "consensus" of the internet more than it trusts your own website. If you say you're the best, that's marketing. If Yelp, TripAdvisor, and five industry blogs say you're the best, that's a fact.

  • The Move: You need an "Authority Ecosystem." This means ensuring your business information (N.A.P. Name, Address, Phone) is identical across every directory, map, and review site.

  • The Example: Let's say you run "Peppy's Pizza." If your site says you're open, but Yelp says you're closed, and your Google Business Profile has an old phone number, the AI gets confused. When AI gets confused, it ignores you. Clean up your listings so they all match perfectly.

3. Get "Loud" (Sentiment & Mentions)

This is probably the one thing that involves the most work. AI listens to the crowd. It rewards the "loudest" brands—not necessarily the ones shouting the most, but the ones being talked about the most.

  • The Move: Generate positive sentiment. You need mentions in places other than your site. This includes PR, listicles ("Top 10 lists"), and social media tags.

  • The Example: Weak AIO: You write a blog post called "Why we are the best plumbers." Strong AIO: You get mentioned in a local news article about "Small businesses saving the day" or a Reddit thread about "Reliable plumbers."

  • Why it works: These are "breadcrumbs" that teach the AI that real humans like and trust you.

4. The Wikipedia Test (Establish Entity Authority)

The Holy Grail of AIO is becoming a recognized "Entity." You want the AI to know you like it knows Coca-Cola or Nike (on a smaller scale, of course).

  • The Move: If possible, get a Wikipedia page or a Google Knowledge Panel. If you can't get Wikipedia, aim for industry-specific directories (like G2 for software or Healthgrades for doctors).

  • The Example: If a user asks, "Is Your Company legit?", the AI cross-references these trusted databases. If you are missing from them, the AI might answer, "I don't have enough information on that company," which is the kiss of death for a sale.

Summary

AIO isn't about ranking for a keyword; it's about brand survival.

If you don't verify your identity across the web, you are leaving your reputation up to the AI's assumptions. And as we know, you don't want to lose revenue because a robot assumed you went out of business three years ago.

Your AIO To-Do List:

  1. Schema: Mark up your site so the AI understands your data.

  2. Consistency: Ensure your name, address, and phone number are identical everywhere.

  3. Reviews: Get your customers to talk about you on third-party sites (Google, Yelp, G2).

  4. Mentions: Get cited in "Best of" lists and local directories.


Monday, February 2, 2026

Mastering the Art of Answer Engine Optimization (AEO)


Think of
Answer Engine Optimization (AEO) as a sub genre of GEO which I explored in my previous post while we walk through some of the details and have a closer look into what it’s all about…

The Cheat Sheet: AEO vs. GEO

Before we dive in, let’s clear up the alphabet soup. Both strategies want AI to notice you, but they play different positions on the field.

  • AEO (Answer Engine Optimization): This is about being the direct answer. When someone asks a specific question (e.g., "How long does a drill battery last?"), you want the AI to read your specific sentence verbatim as the solution. It’s about winning the "Featured Snippet" or the voice answer on Alexa/Siri.

  • GEO (Generative Engine Optimization): This is about being the recommendation. When someone asks a complex question (e.g., "Best drills for contractors"), you want the AI to synthesize your content with others and cite you as an authority in its custom-written essay. It’s about influence and reputation.

Think of it this way: AEO is writing the summary on the back of the book so the librarian can instantly answer a quick question. GEO is ensuring your book is cited in the librarian's research paper.


AEO: The Art of the "Zero-Click" Win

We are moving toward a world where people don't want links; they want answers. If your customer asks, "Why is my power drill not working?" they don't want to read your company history. They want to know if they need to replace the battery.

AEO is the art of structuring your content so clearly that an AI (like ChatGPT, Google’s AI Overview, or Siri) looks at it and says, "This is the perfect answer," and serves it up on a silver platter, often without the user ever clicking your website.

Here is the playbook for getting your content chosen as the "Answer."

1. The "Answer First" Rule (Don't Bury the Lead)

To reiterate what I discussed in my previous post, LLMs (Large Language Models) are impatient. If you write a 2,000-word blog post where the actual answer is buried in paragraph twelve, you lose.

  • The Move: Identify the specific question your customer is asking and answer it immediately in a clean, 40–60 word paragraph at the very top of your section.

  • The Example: Let's say you run an HVAC company.

    • Bad AEO: Starting with "Drilling into steel and concrete is one the most challenging mediums that stress your drill operability…..."

    • Good AEO: Create an H2 header: "Why is my power drill not working?" Immediately follow it with: "The most common reason for a power drill not working is due to poor battery health after a long period of heavy usage."

    • Why it works: You gave the AI a perfect, bite-sized snippet it can steal and read aloud to the user.

2. Product Titles & Descriptions That Actually Talk

Generic product pages are AEO killers. If you just list "Model X Drill" and a price, the AI has nothing to say. You need to anticipate the follow-up questions.

  • The Move: Rewrite descriptions to proactively answer questions about specs, usage, and problems.

  • The Example:

    • Bad AEO: "Cordless Power Drill. High quality."

    • Good AEO: "This Cordless Power Drill features a 20-hour battery life on a single charge and is water-resistant, delivering a massive 1,400 in-lbs of torque"

    • Why it works: You just answered "How long is the battery?", "Is it water-proof?" and “How much torque does it have?” in one sentence. The AI can now match your product to those specific queries.

3. The Q&A Format (FAQ Pages on Steroids)

AI models love the "Q&A" format because it mimics how they are trained. You can force your way into the conversation by structuring data exactly how the AI wants to see it.

  • The Move: Create "Question/Answer" pairs. Don't just rely on paragraphs; use an FAQ list where the question is an H3 header and the answer is body text.

  • The Example:

    • Q: "Is the Milwaukee FPD3 a hammer drill?"

    • A: "Yes, the Milwaukee M18 FPD3 is a percussion/hammer drill designed for drilling into brick, concrete, and masonry."

    • Why it works: You are literally feeding the robot the script. This creates "prime fodder" for AI overviews and voice search results.

4. Speak the Robot’s Language (Schema Markup)

This is the technical bit, but it’s crucial. You need to use code to tell the search engine exactly what it is looking at. This is called "Schema." and we will visit this in future posts, it’s something at the top of my list to understand further.

  • The Move: Use "FAQPage" schema or "Product" schema. This puts invisible labels on your content that shout, "Hey Google, this text here is a price," or "This text here is an answer to a common question."

  • The Result: It makes it incredibly easy for the engine to index your content as a verified answer, drastically increasing your chances of showing up in rich results and AI summaries.

The Bottom Line

AEO is about utility. It’s about accepting that your website might not be the destination anymore—it’s the database the AI uses to do its job. Be concise, be factual, and answer the question before the user has a chance to scroll.


Beyond the Prompt: Vibe Coding

Previously , I explored a provocative reality: the era of manual, meticulous "prompt engineering" is coming to an end. The days of...