Chat widget
A chat window on your site that answers visitors' questions from your own content. Set it up on the Chat widget tab.
Four ways of answering
| Mode | How it answers | Cost |
|---|---|---|
| Curated answers only | With the answers you wrote, word for word | Free |
| Curated answers, then site search | A curated answer when one fits, else the closest passage from your site, quoted with a link | Free (the default) |
| Curated answers, then AI | A curated answer when one fits (free), else the AI writes an answer from the passages your site search finds | Paid when no curated answer fits |
| AI for every question | The AI answers every question, from the passages your site search finds and, when one fits, your curated answer as the wording to use | Paid on every question |
The free modes never contact anything outside your site. Site search quotes rather than rewrites, so nothing can be invented. It matches words rather than meaning, but it knows which words mean the same, forgives a typo and follows a short follow-up (see Smarter free answers). The AI modes understand the question, follow the whole conversation and write a proper reply, at a cost per answer.
Curated answers, then AI is usually the best value: the more you curate, the less you spend. AI for every question gives the most natural replies.
Curated answers
The questions you get every week (opening hours, delivery, returns, parking, sizes) with the exact answer you want given. Free, instant, and the most reliable part of the assistant, because you wrote the words.
- Also matches: other words people use for the same question ("shipping, postage, courier"). Common ones are already known (see below), so this is for the words of your own trade.
- Link: shown under the answer.
- Match strictness: from 0.35 to 0.95. Lower answers more questions but risks a wrong match; 0.6 is a good start.
- Bring them in: from an FAQ post type, Yoast or Rank Math FAQ blocks, accordions, or a page whose headings are questions. Nothing is added until you tick it.
The Questions screen shows what visitors really ask: run the widget for two weeks, then curate what came up.
Answers can carry a little formatting: **bold**, a list with a - at the start of each line, and links as [words](/page/) or a plain web address. The widget shows them formatted. Nothing else becomes formatting, and no HTML ever reaches the page.
Smarter free answers
The free modes do more than look for the same words:
- Words that mean the same. "Cost", "price", "preço", "tarifa" and "Preis" find the same answer. The plugin knows the common words for prices, opening hours, bookings, delivery, cancellation, contact, address, payment, cars, airports, deposits, insurance, children, parking and pets in English, Portuguese, Spanish, French and German, and their usual endings ("reservamos" counts as "reservar"). Add the words of your own trade under Words that mean the same, one group per line:
scooter, moped, mota. - Typos. "Reservaton" finds "reservation". A word of five letters or more may be one letter off, of eight or more two; the first letter must be right.
- Follow-ups. "And an extra driver?" right after "How old must drivers be?" is searched together with that question. A short message that reads as a new question ("airport parking") is not.
- Short replies. Site search quotes the one or two sentences of the passage that say most about the question, under its heading in bold, with the page linked below, rather than a whole block of text.
- Did you mean…? When no curated answer quite fits but one came close, it is offered under the reply as a question to tap.
- Only what is relevant. A passage that shares no word with the question, not even a synonym, is not quoted: the visitor gets "I couldn't find anything about that", the hand-off to a person, and any close curated question instead.
Starting the conversation
- Suggested questions: up to three, under the greeting, for the visitor to tap. Write your own, one per line, or leave the box blank for the first three curated questions. A visitor who sees a question ready to ask is far more likely to ask one.
- Nudge: a small bubble by the launcher after a number of seconds on a page, such as "Questions about the car?". It shows once per visit, never over an open chat and never once a conversation has started. Limit it to some pages with one path per line:
/cars/for that page,/cars/*for every page under it.
The conversation follows the visitor
The conversation is kept in the visitor's browser tab (sessionStorage), so it is still there on the next page. Follow a link in an answer and the chat opens again on the page it leads to, mid-conversation. Closing the tab ends it, and New conversation (the arrow in the window's header) starts over. Nothing about it is stored on your server beyond the questions log.
Multilingual sites
With Polylang or WPML, write the title, greeting, suggested questions, nudge and curated answers in your main language. They appear for translation where you translate everything else: Languages > Translations in Polylang, WPML > String Translation in WPML, group Pitwall AI Manifest. Each visitor then gets the widget in the language of the page, curated answers in that language, and passages only from the pages in that language. The plugin's own words ("Did you mean:", "New conversation") follow the language of the page too. AI answers reply in the language the visitor writes in.
AI answers
Where AI answers come from
AI answers go through WordPress's own AI Client, and only through it. On WordPress 7.0 and later, WordPress has its own AI settings: under Settings, Connectors you set up an AI provider (OpenAI, Google, Anthropic and others) once, for the whole site. The chat widget's AI answers then go through the AI Client to that provider, on your account with it, and WordPress picks the model. The AI answers card on the Chat widget tab shows Set up when a provider can answer, and links to Settings, Connectors.
The plugin never connects to an AI service by itself, and has no AI key of its own.
For each AI answer, in this order:
- WordPress AI answers, when it can take the question.
- Otherwise, the visitor gets the free answer: a curated answer, or a passage from your site.
WordPress AI cannot take a question when no provider is set up, or when your site prevents AI prompts. A site can do that for visitors only (a plugin using WordPress's wp_ai_client_prevent_prompt filter): the Status card warns about it, because your own test questions, asked as an administrator, still get through.
When the AI is switched off
On WordPress before 7.0, with no AI provider set up, or with AI switched off on the site, the AI features are off. The two ways of answering that use AI keep working the free way, a notice on the plugin's screens says how to switch the AI on, and everything else in the plugin is unaffected. Update WordPress to 7.0 or later, then add a provider under Settings, Connectors, and the AI answers start by themselves.
Every answer is sent the same thing: the same instructions, the same conversation, the same passages and curated answer, and the same Longest answer. The same Daily limit and Per-visitor limit apply, and every answer goes into the questions log with its token counts.
What is sent, and to whom
Only in the two AI modes, and only for questions an AI answers:
- the visitor's question, and the earlier messages of the same conversation;
- the passages from your site that the plugin's own search found;
- the curated answer that fits the question, if any;
- your llms.txt and site name, and the assistant's instructions, including your Extra guidance.
It goes through WordPress's AI Client to the provider you set up under Settings, Connectors: that provider's terms and privacy policy apply.
Nothing that identifies the visitor is sent: no IP address, cookie or login. Mention it in your privacy policy: WordPress suggests the wording under Settings, Privacy, Name your WordPress AI provider there.
Settings
| Setting | Default | What it does |
|---|---|---|
| Longest answer | 1,024 tokens | A ceiling on one answer, the model's thinking included. An answer cut off by it ends in "…". |
| Passages per answer | 6 | How many passages from your site go with each question |
| Daily limit | 500 | AI answers per day (UTC). Past it, visitors get the free answer until midnight. 0 for no limit. |
| Conversation memory | 12 messages | Earlier messages are sent again with each new one, so this is also a cost setting |
| Per-visitor limit | 8 a minute | Messages one visitor address may send a minute |
What it costs
Your AI provider bills you at its own prices, on the account you connected in WordPress, for each AI answer. The two free ways of answering cost nothing. The daily limit caps how many AI answers a day can be billed.
When an AI answer fails
If WordPress AI fails (the provider is busy or down, it turns your key down, or your site stops the prompt), the visitor gets the free answer (a curated answer or a passage) instead of an error. The Status card says what failed until WordPress AI answers again. If the AI declines a question, the visitor is told so.
Choosing the model for WordPress AI
The model is your site's: WordPress uses one its provider offers. A developer can suggest models, in order, with the ltxt_ai_client_model_preference filter (Hooks). It is a preference: when none of them is available, WordPress answers with any model that can.
Safety
- The AI is told to answer only from your content, and never to state a price, time, phone number or policy that is not in it.
- Page text is marked as content, not instruction, so a page cannot talk the assistant out of its rules.
- The conversation lives in the visitor's browser. Each answer comes back with a signature, and when the browser sends the conversation back, only answers this site signed count. A visitor cannot plant words in the assistant's mouth.
Who can see it
- Everyone: live on the site.
- Logged-in users: members, customers and staff.
- Administrators: private testing on the real site, with a preview badge in the window.
The rule is enforced by the endpoint as well as the widget, so a restricted widget is private, not hidden.
Look and words
Title, subtitle, greeting, avatar (or the business's initials), brand colour (a hex code, var(--your-theme-colour), rgb(), hsl() or a colour name), text colour on it, light or dark or following the device, three sizes, corner rounding, either bottom corner, every page or the front page only, and words beside the launcher icon. For finer control over where it shows, use the ltxt_render_widget filter (Hooks).
Talk to a person
Add a WhatsApp number (with a first message waiting in the visitor's WhatsApp), an email address and a contact page. The widget offers them after a question it could not answer (the default, once per conversation), always, or never.
Weekly email
Turn on Weekly email under Questions log and every Monday morning you get the week in a few lines: how many questions came in, how many had an answer, and the ones without, most asked first, with a link to write the answers. A week without questions sends nothing. It goes to the site's admin address unless you give another. It needs the log on.
Page caching
The widget works on cached pages. Logged-out visitors get no security token in the page, so a page cached for days cannot carry an expired one. A logged-in visitor whose token has expired is sent through again without it; if the assistant is only for logged-in users, they are asked to reload the page.
Testing
The Status card has a test box: it answers your question the way the widget would, with your saved settings, and shows which way it answered (curated answer, site search, AI) or the exact error. For an AI answer it names the provider and the model. If the test answers but the widget does not, look at who can see it, or at your page cache.