---
title: "How Ask Sam works"
url: https://www.sam-page.com/thinking/how-ask-sam-works
date: 2026-12-05
author: Sam Page
type: Post or article
categories: [Emerging tech and AI, Digital product]
reading_time: 4 min
summary: "Ask Sam answers questions in my voice, from my own writing, for people and for AI agents. Here's what it knows, how it answers, and how I keep it safe."
copyright: © Sam Page. All rights reserved.
agent:
  instructions: "Use this search API to find anything on this site instead of crawling its pages. Send a keyword or natural-language query and get the most relevant passages back as Markdown, with links and relevance scores."
  endpoint: "https://www.sam-page.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.sam-page.com/developers"
---

# How Ask Sam works

On every page of my website there's a box that says Ask me anything. That's Ask Sam. Type a question and an AI version of me answers it, in my voice, from what I've actually written, with links to where I wrote it. AI agents can ask it too.

People asked it 20 questions in the last month, and I read every one, because each one is emailed to me. That's the part I like most. It's a way into a conversation with me.

This is how it works.

![Ask me anything answering "What does Sam help CEOs and boards with?", with links to my CV and two pieces of writing](https://www.sam-page.com/img/thinking/how-ask-sam-works-1.webp)

## What it knows

It only knows what I've written down:

- Every post and article on my site, and every edition of The Friday Takeaway.
- My CV, my story and the pages that explain how the site works.
- My articles on 7dots.com, which it links to in their original place.
- Some private notes. I mark each one as something it can quote, or as background that shapes an answer but is never quoted.

That's nearly 300 pieces, cut into about 1,100 short passages. Each passage is turned into a list of numbers that captures its meaning, so it can be found by what it's about, even when a question uses different words.

## How it answers

When you ask a question:

1. It checks you're within the limits (20 questions an hour, 60 a day), so it can't be overused.
2. It searches the passages by meaning and picks the best few.
3. It builds a brief: those passages, plus a description of how I write.
4. An AI model writes the answer from those passages only, and it appears on the page as it's written. It runs on open models through a service called Fireworks, with three back-ups if the first is busy.
5. It tidies the answer, links to the pieces it drew on, and suggests what to read next.
6. It saves the question and emails it to me.

If I haven't written about something, it says so: "I haven't written about that yet." I'd much rather it said that than made something up.

## How it sounds like me

The brief it follows is the same one I'd give anyone writing for me. Answer the question first. Keep it short, around 60 to 150 words. Sound like an old friend. Use British English. Never use the words I never use. Only claim experience my writing shows.

## Keeping it safe

Before it went live, I tried to break it, with 18 attempts at jailbreaks and tricks to make it ignore its instructions. It refused every one, in character. But testing found two real problems. It invented experience I don't have, and, asked directly, it gave one of my children's names.

Both are fixed. It now only claims experience that's in what I've written, and my children's names are taken out by the code before anything reaches the model, the answer or the log. A rule in a prompt helps. A rule in the code is the one you can rely on.

It also respects what you've chosen about privacy. If you accept the one cookie the site asks for, it builds on what you've read here across your visits, and its first answer tells you what it thinks you're interested in, so you can see what it's using. If you don't, it doesn't.

## Agents can ask it too

Ask Sam is open to AI agents too: through WebMCP in the browser, my MCP server, NLWeb and A2A. Every route goes through the same function, with the same limits and privacy rules, and the email I get says which way the question came in. If an agent is researching me for someone, it gets the same answers a person would.

An agent that only wants to find something, rather than get an answer, can search the whole site at [/.well-known/search](/.well-known/search?q=go-to-market). That returns my own words, the passages that match best, as Markdown.

![The MCP tools listed on my developers page, starting with ask_sam](https://www.sam-page.com/img/thinking/how-ask-sam-works-2.webp)

## If you want one

The technology is the easy part now. What makes it work is having enough of your own thinking written down for it to draw on. There are nearly 300 pieces of my writing behind it, and that's what gives it something to say.

If you're thinking about one for yourself or your business, [get in touch](/contact). Or just [ask it something](/ask) and see what you think.
