Cum îți construiești un chatbot simplu cu Claude pentru întrebările frecventeHow to build a simple Claude chatbot for your website's frequent questions

Paul Gog·2 minute · actualizat 20 august 20262 min · updated August 20, 2026

Pentru cine primește zilnic aceleași întrebări pe e-mail sau pe chat și vrea un răspuns automat, bun din prima. Arăt exact ce pui în prompt și unde îl legi de site.For anyone who gets the same questions by email or chat every day and wants a decent automatic answer. I show exactly what goes in the prompt and where it connects to the site.

Top-down view of a smartphone displaying a chatbot interface on a light wooden surface.

Ai un site și primești mereu aceleași întrebări: cât costă transportul, ce program aveți, se poate plăti ramburs. Le răspunzi manual, de pe telefon, seara, sau angajezi pe cineva doar pentru asta. Un chatbot construit pe Claude poate prelua partea repetitivă și te lasă pe tine cu întrebările care chiar au nevoie de un om.

Nu vorbesc despre un robot care înțelege orice. Vorbesc despre unul căruia îi dai lista ta de întrebări și răspunsuri, și el le spune vizitatorilor cu propriile lui cuvinte, corect și fără să inventeze.

Ce îți trebuie înainte să scrii orice cod

Un cont pe consola Anthropic, de unde iei o cheie API — un șir de caractere pe care API-ul îl folosește să te recunoască și să-ți factureze folosirea. Și un document cu întrebările frecvente scrise clar, cum le-ai da unui angajat nou în prima zi.

Fără acest document, chatbotul ghicește. Cu el, chatbotul citează. Diferența se vede din primul răspuns.

Cum construiești prompt-ul de bază

Prompt-ul e textul pe care i-l trimiți lui Claude înainte de întrebarea clientului, ca să-i stabilești rolul. Structura care funcționează:

  1. Îi spui cine e: „Ești asistentul de pe site-ul X, răspunzi la întrebări despre livrare, plată și retur.”
  2. Îi dai lista de întrebări și răspunsuri, exact așa cum le ai tu scrise.
  3. Îi spui ce face când nu știe: „Dacă întrebarea nu e în listă, spui că un coleg va reveni pe e-mail, nu inventezi un răspuns.”

Ultimul punct e cel mai important. Un chatbot care recunoaște că nu știe îți face mai mult bine decât unul care sună convingător și greșește.

Cum îl legi de site

Ai două căi, în funcție de cât timp ai.

Prima: un formular simplu, unde vizitatorul scrie întrebarea, textul ajunge printr-o cerere API la Claude împreună cu prompt-ul tău, iar răspunsul apare pe pagină. Se face cu câteva linii de cod pe orice site, inclusiv WordPress, printr-un plugin mic care trimite cererea și afișează rezultatul.

A doua: îl bagi într-o fereastră de chat, cum ai văzut pe alte site-uri, cu istoricul conversației trimis la fiecare mesaj nou, ca botul să țină minte ce ai spus mai devreme în aceeași discuție. Aici lucrul se complică puțin, pentru că trebuie să gestionezi și memoria conversației, nu doar un singur schimb de mesaje.

Ce nu merită să faci de la început

Nu îl conectezi de la prima versiune la baza de date cu comenzi sau la stocul de produse. Riști să dea informații greșite despre lucruri care se schimbă des, iar o greșeală acolo costă mai mult decât un răspuns lipsă.

Nu îl lași fără supraveghere. Ține un jurnal cu întrebările primite măcar în prima lună. Vei descoperi întrebări pe care nu le-ai pus în listă și pe care clienții chiar le au.

Ce faci mâine dimineață

Scrii pe o foaie cele mai frecvente zece întrebări primite luna trecută, cu răspunsul exact pe care l-ai da tu. Asta e prompt-ul tău de plecare, restul e conectare tehnică.

Întrebări frecvente

Trebuie să știu să programez ca să fac asta?

Pentru formularul simplu, ai nevoie de puțin cod care trimite o cerere și afișează un răspuns — se poate face și cu un plugin gata scris. Pentru fereastra de chat cu istoric, e nevoie de cineva care știe să lucreze cu API-uri.

Cât mă costă să folosesc Claude pentru așa ceva?

Plătești în funcție de câte cuvinte trimiți și primești, nu un abonament fix. Pentru un set de întrebări frecvente, costul pe conversație e mic, dar depinde de câte întrebări primești zilnic, așa că verifică pe pagina de prețuri a Anthropic cifrele actuale.

Ce se întâmplă dacă cineva întreabă ceva ciudat sau răutăcios?

Dacă i-ai spus clar în prompt să răspundă doar din lista dată și să spună când nu știe, riscul e mic. Merită totuși să citești jurnalul de conversații din primele săptămâni, ca să vezi ce fel de întrebări primești în realitate.

You run a site and keep getting the same questions: how much is shipping, what are your hours, can they pay on delivery. You answer manually, from your phone, in the evening, or you hire someone just for that. A chatbot built on Claude can take over the repetitive part and leave you with the questions that actually need a human.

I'm not talking about a bot that understands everything. I'm talking about one you feed your list of questions and answers, and it tells visitors the same thing in its own words, correctly, without making things up.

What you need before writing any code

An account on the Anthropic console, where you get an API key — a string of characters the API uses to recognize you and bill your usage. And a document with your frequent questions written clearly, the way you'd explain them to a new employee on day one.

Without this document, the chatbot guesses. With it, the chatbot quotes. The difference shows in the first answer.

How you build the base prompt

The prompt is the text you send Claude before the customer's question, to set its role. The structure that works:

  1. You tell it who it is: 'You're the assistant on site X, you answer questions about shipping, payment and returns.'
  2. You give it your list of questions and answers, written exactly as you have them.
  3. You tell it what to do when it doesn't know: 'If the question isn't on the list, say a colleague will follow up by email, don't make up an answer.'

This last point matters most. A chatbot that admits it doesn't know does you more good than one that sounds convincing and gets it wrong.

How you connect it to your site

You have two paths, depending on how much time you have.

First: a simple form, where the visitor types the question, the text goes through an API request to Claude along with your prompt, and the answer shows up on the page. This takes a few lines of code on any site, including WordPress, through a small plugin that sends the request and displays the result.

Second: you put it in a chat window, like the ones you've seen on other sites, with the conversation history sent along with every new message, so the bot remembers what was said earlier in the same conversation. This gets a bit more complicated, because you also have to handle conversation memory, not just a single exchange.

What's not worth doing from the start

Don't connect it, in the first version, to your order database or product stock. You risk giving wrong information about things that change often, and a mistake there costs more than a missing answer.

Don't leave it unsupervised. Keep a log of the questions it receives for at least the first month. You'll find questions you never put on your list, that customers actually have.

What to do tomorrow morning

Write down the ten most frequent questions you got last month, with the exact answer you'd give yourself. That's your starting prompt — the rest is technical wiring.

Frequently asked

Do I need to know programming for this?

For the simple form, you need a bit of code that sends a request and shows a response — a ready-made plugin can also do it. For a chat window with history, you need someone comfortable working with APIs.

How much does it cost to use Claude for this?

You pay based on how many words you send and receive, not a fixed subscription. For a FAQ set, the cost per conversation is small, but it depends on how many questions you get daily, so check Anthropic's pricing page for current numbers.

What happens if someone asks something odd or malicious?

If you've clearly told it in the prompt to answer only from the given list and to say when it doesn't know, the risk is low. Still, it's worth reading the conversation log from the first weeks, to see what kind of questions you actually get.

ClaudechatbotAPIîntrebări frecventeautomatizare

Mai departeRead next