How to Set Up the Text AI Agent: Complete Guide (2026)

The Text AI Agent (from the company formerly called LiveChat) can answer customer questions, recommend products, offer discounts and hand tricky chats to a human. Setting it up well takes more than switching it on: you need a knowledge base, clear instructions, a chat widget on your site and a way to measure whether it actually resolves conversations.

This guide puts the whole workflow in one place, in the order you should do it: set up the agent, put the widget on your site, train it, write its instructions, extend it with skills and Shopify, configure human handoff and discounts, scale to more sites or languages, and finally measure and improve. Jump to any step from the contents list.

Last updated: November 23, 2026. Menus and plan details can change, so check the tool before you buy.

Best for: Stores and support teams that want AI to answer and sell

Starting price: Essential $19/user/month (billed yearly)

Before you start

  • A Text account (the 14-day trial needs no credit card)
  • Owner or Admin role, because only these roles can edit the AI agent
  • Your website URL plus any FAQ, policy or product documents (PDF, DOCX, TXT, CSV or MD)
  • A short list of the 20 to 30 questions customers ask most often

What this guide covers

  1. Set Up the Text AI Agent
  2. Add the Text Chat Widget to Your Website or WordPress
  3. Train an AI Agent on Your Website, Files and FAQs
  4. Write AI Agent Instructions
  5. Create a Custom Skill for the Text AI Agent
  6. Connect the Text AI Agent to Shopify
  7. Set Up AI-to-Human Handoff in Text
  8. Offer Discount Codes in AI Chat to Save Sales
  9. Run Multiple AI Agents for Different Websites or Languages
  10. Measure and Improve Your AI Agent Resolution Rate

1. Set Up the Text AI Agent

The Text AI Agent answers customer questions, recommends products and hands chats to your team when needed. You can have a first version live on your website in about 30 minutes, without code.

Step 1: Open the AI agent profile

In the Text app, go to Team and open the AI agent profile. Give it a name and an avatar. Many brands use a friendly first name plus “AI” so customers know they are talking to a bot.

Step 2: Choose a tone of voice and answer length

Pick one tone: Professional, Concise, Polite, Friendly or Casual. Then choose Short, Standard or Long answers.

For most stores, Friendly tone with Standard length works best. Use Short if most chats come from mobile visitors.

Step 3: Write the custom instructions

Describe the agent’s role, what it should and should not do, and how to behave when it is unsure. The field accepts up to 10,000 characters. See our instruction templates for a ready-made starting point.

Step 4: Set the languages

In Language, choose All languages or only the languages your team can support if a chat is handed over. Text says the agent works in 46 languages.

Step 5: Add knowledge sources

Add your website (full site, nested pages or a single page) and click Agree and scan. Turn on Auto-update so new pages are picked up. Then upload files such as your returns policy or product catalog. Details are in our knowledge sources guide.

Step 6: Turn on the default skills

Enable the skills you need: Send welcome message, Handle tickets, Collect customer details, Transfer to human and Discount code.

Always keep Transfer to human switched on. Customers who cannot reach a person are the main source of bad AI chat reviews.

Step 7: Test in the preview widget

Ask the 20 to 30 common questions from your list in the preview. The preview shows when a skill would trigger, but transfers and tickets do not actually run there. Fix wrong answers by improving the knowledge source, not only the instructions.

Step 8: Switch the agent on

Set the agent to Accept chats. If the chat widget is not on your site yet, follow our widget installation guide.

Launch checklist

  • The agent answers your top questions correctly in preview
  • Transfer to human is on, with a ticket fallback when no one is available
  • Prices, shipping times and policies come from a knowledge source, not from memory
  • Someone on the team reviews AI chats in Archives during the first week

2. Add the Text Chat Widget to Your Website or WordPress

Your AI agent can only help visitors once the chat widget is on your site. Installing it takes about five minutes: you copy one snippet and paste it once in a global place such as your footer.

Choose your method

MethodBest for
HTML snippetCustom sites and most CMS templates
WordPressWordPress and WooCommerce sites
Google Tag ManagerSites that already manage scripts in GTM
Shopify appShopify stores (see our Shopify guide)
Framework SDKReact, Vue or Angular apps

Method 1: HTML snippet (any website)

Step 1: Open Website widgets

In the Text app, go to Settings → Website widgets.

Step 2: Enter your website URL

Type your site address. You can preview the code even if the site is not live yet.

Step 3: Choose Embed code

Select </> Embed code and click Continue. The HTML tab opens by default.

Step 4: Copy the snippet

Click the generated code to copy it. If a developer installs it for you, use Share setup link instead.

Step 5: Paste it before </body>

Paste the snippet just before the closing </body> tag, in a global footer or layout file so it loads on every page. Save and reload your site.

Step 6: Confirm it is connected

Back in Website widgets, check the status. If it does not say Connected yet, open your site and click the widget once.

Method 2: WordPress

Text offers a dedicated WordPress integration; follow the “Add Text widget to WordPress” article in the Text Help Center if you prefer a plugin-style install. If you would rather paste the snippet yourself, this method works with any theme:

Step 1: Install a header and footer plugin

In WordPress, go to Plugins → Add New and install a code snippets plugin such as WPCode, if you do not already use one.

Step 2: Add the snippet to the footer

Create a new snippet, paste the Text code, set the location to Site Wide Footer and activate it.

Step 3: Clear your cache

If you use a caching or optimization plugin, purge the cache so visitors see the widget.

Some optimization plugins delay or combine JavaScript. If the widget does not appear, exclude the Text script from “delay JS” settings.

Method 3: Google Tag Manager

Create a new Custom HTML tag, paste the Text snippet, set the trigger to All Pages, then preview and publish the container. Text has a separate Help Center article with GTM details.

After installing: quick checklist

  • The widget appears on desktop and mobile
  • It does not cover your “Add to cart” or cookie banner buttons
  • Your AI agent is switched to Accept chats
  • Your privacy policy mentions the chat tool and the data it collects

3. Train an AI Agent on Your Website, Files and FAQs

An AI agent is only as good as what it knows. If it gives wrong prices or invents a returns policy, the problem is almost always missing or messy knowledge, not the AI itself.

Step 1: Clean up the source first

Check that your FAQ and policy pages are current. Delete or update old promotions, discontinued products and outdated shipping times. The agent will repeat whatever it reads.

Step 2: Add your website

Open the AI agent’s knowledge settings and choose Add new website. Paste the URL.

Step 3: Choose the scan scope

Pick full website, nested pages (for example only /help/) or a single page.

If your blog is large, scan only product, pricing and help pages. Blog posts can add noise and outdated advice.

Step 4: Turn on auto-update

Enable Auto-update and pick an interval, such as every 30 days, then click Agree and scan.

Step 5: Upload your key files

Click Select a file or drag documents into the upload area, then Save file. Give files clear names such as “Returns policy 2026.pdf”.

Step 6: Write short articles for gaps

Use the Articles section for answers that are not on your site, for example “Do you ship to Canada?” or “Can I change my order after paying?”. One question per article works best.

Step 7: Test with real questions

Ask the preview widget the questions customers actually type, including typos and short phrases like “refund?” or “where’s my order”.

Step 8: Fix gaps from real chats

Each week, open Archives, find chats where the agent was unsure or transferred, and add the missing answer as an article or update the source page.

The three types of knowledge

SourceBest forKeep it fresh by
WebsiteProduct pages, help center, blogAuto-update (e.g. every 30 days)
FilesPolicies, catalogs, price lists, manualsRe-uploading when the document changes
ArticlesShort answers that exist nowhere elseEditing in the in-app Articles section

Tips for accurate answers

  • One fact, one place: avoid different shipping times on different pages
  • Put prices and numbers in plain text, not only in images
  • Use the instructions to say what the agent must never promise (for example refunds outside policy)
  • Use a separate knowledge set for each brand or website if you run several

The difference between knowledge and instructions: knowledge is what the agent knows; instructions are how it behaves. Put facts in knowledge, and rules and tone in instructions.

4. Write AI Agent Instructions

Instructions tell your AI agent who it is, how to talk and where its limits are. Good instructions are short, specific and tested. Vague ones (“be helpful”) lead to long, unfocused answers.

Step 1: Define the role

One or two sentences: who the agent is and who it serves. Example: “You are Mia, the AI assistant for Northwind Outdoor, an online store selling hiking gear in the US and Canada.”

Step 2: State the goal

Say what success looks like: answering questions, recommending the right product, collecting an email for follow-up or booking a demo.

Step 3: Describe the style

Choose the tone and length in the settings, then add specifics: “Use short paragraphs. No more than one emoji. Use the customer’s first name if they share it.”

Step 4: Write the rules

List what the agent must and must not do. Rules prevent the most expensive mistakes.

Always include: never invent prices, discounts, delivery dates or policies; only use information from the knowledge sources.

Step 5: Define when to hand over

Say exactly when to transfer to a human: angry customers, refunds above a set amount, legal or medical questions, or after two failed answers. Pair this with the Transfer to human skill.

Step 6: Test and trim

Ask 20 real questions in preview. If an answer is wrong, first fix the knowledge source; change instructions only for behaviour problems. Remove any rule that does not change results.

The 5-part instruction framework

  1. Role
  2. Goal
  3. Style
  4. Rules
  5. Escalation

Template 1: Ecommerce store

You are [Name], the AI shopping assistant for [Store], which sells [products] to customers in [countries]. Your goal is to help shoppers find the right product and answer questions about orders, shipping and returns. Be friendly and concise: 2–4 sentences per reply. Recommend at most three products, and explain in one line why each fits. Only use prices, stock, shipping and return information from the knowledge sources. Never promise discounts unless the Discount code skill applies. If a customer is upset, asks for a refund, or you cannot find the answer after one try, apologise briefly and transfer to the team.

Template 2: SaaS or software company

You are the AI assistant for [Product], a [category] tool for [audience]. Help visitors understand features, plans and setup, and help customers solve common problems using the help center. Use clear, professional language and numbered steps for how-to answers. Do not speculate about the roadmap, security certifications or legal terms beyond what the sources say. If a visitor asks about pricing for more than [X] users, collect their name, email and company and offer a demo. Transfer billing disputes and bug reports to the support team.

Template 3: Local service business

You are the virtual receptionist for [Business], a [service] in [city]. Answer questions about services, prices, opening hours and service areas. Keep answers short and warm. To book, collect name, phone number, preferred date and the service needed, then confirm a team member will call back within [time]. Never give medical, legal or safety advice. Transfer urgent requests immediately.

Common mistakes

  • Pasting your whole FAQ into instructions (put it in knowledge instead)
  • Rules that conflict, such as “always upsell” and “never be pushy”
  • No escalation rule, so customers get stuck in loops
  • Writing instructions once and never revisiting them after real chats

5. Create a Custom Skill for the Text AI Agent

Custom skills let your AI agent take actions, not just answer. You describe what should happen in plain language, and Text builds the workflow: tag the chat, create a ticket, transfer to a team or send a transcript.

Step 1: Open Skills

Go to Team → AI agents → Skills.

Step 2: Start from a template or a prompt

Click + next to a template in Skill examples, or describe the skill in one or two sentences: what starts it, what it should do and the result you want.

Step 3: Review the generated steps

The builder turns your description into steps. Check the skill name, the prompt and each action. Remove steps you do not need.

Step 4: Test in the preview

Use the preview on the right to run a sample conversation and confirm the skill triggers at the right moment, and only then.

Step 5: Save or activate

Click Save to keep a draft or Save & activate to go live.

Step 6: Check Runs

Open Runs (top right of the editor) to see each time the skill triggered, in which chat and which steps ran. Refine the prompt if it fires too often or too rarely.

Actions you can use

GroupActions
Built-inSend message, Collect details
CustomersGet customer data, Update customer, Add customer event
ChatsTransfer, Tag, Get or send transcript, Supervise, Close, Get chat details or report
TicketsCreate, Find, Update, Send message, Add followers, Tag, Summarize
GeneralMatch agent, Detect language

5 custom skill ideas (copy the prompt)

  • Order status: “When a customer asks where their order is, collect the order number or email, then share the status. If it is late, create a ticket tagged delivery.”
  • After-hours lead capture: “After 5 PM local time, if someone asks about pricing, collect name and email and create a ticket tagged sales-lead.”
  • Language routing: “If the customer writes in Spanish, transfer the chat to the Spanish team.”
  • Demo booking: “After two or more product questions, offer a demo and create a ticket tagged demo-request.”
  • Abuse protection: “If a message contains abusive language, close the chat politely and tag it abuse.”

Start with one or two skills that cover your most common requests. Ten overlapping skills are harder to test than three clear ones.

6. Connect the Text AI Agent to Shopify

On Shopify, the Text AI Agent can do more than answer FAQs. It reads your live catalog, shows product cards with an add-to-cart button inside the chat and answers “where is my order” questions from your order data.

Step 1: Add Text from the Shopify App Store

Search for Text in the Shopify App Store and install it like any other app. A credit card is not needed for the 14-day trial.

Step 2: Review the permissions

The app asks for access to products, orders, customers, store policies and script tags. Text says each permission maps to a feature, for example order data for order-status answers.

Step 3: Let Text sync your catalog

Once connected, Text pulls your products and order data and the widget appears on your storefront.

Step 4: Add store policies to knowledge

Make sure shipping, returns and size-guide pages are in the agent’s knowledge sources. See how to train your AI agent.

Step 5: Write shopping instructions

Tell the agent how to recommend: ask one or two questions (budget, use, size), suggest up to three products and explain why. Use our ecommerce instruction template.

Step 6: Test a full purchase journey

In preview or on your live store, ask for a product recommendation, pick a variant, add it to cart and ask “where is my order” with a test order number.

Test on mobile. Most Shopify traffic is mobile, and product cards should be easy to tap.

Step 7: Turn on handoff and discounts carefully

Keep Transfer to human on. Add a discount only for clear cases, such as a shopper hesitating at checkout. See discount codes in AI chat.

What the integration does

  • Recommends products from your live catalog based on what the shopper describes
  • Shows product cards so shoppers pick a variant and add to cart without leaving chat
  • Answers order status, shipping and availability questions
  • Shows returning visitors the cart they left behind
  • Hands complex cases to your team with the live cart, past orders and lifetime spend visible

Checkout page chat requires Shopify Plus. On other plans, the widget works on the storefront and the Thank You page.

7. Set Up AI-to-Human Handoff in Text

The fastest way to lose trust in an AI chat is to trap customers in a loop. A good handoff passes the chat to a person at the right moment, with the full conversation, so the customer never has to repeat themselves.

Step 1: Turn on Transfer to human

In the AI agent’s skills, enable Transfer to human.

Step 2: Choose the routing

Select Automatic, or Transfer to a specific team if you have more than one team (for example Sales and Support).

Step 3: Add the ticket fallback

Tick Create a ticket. If no teammate picks up within 30 seconds, a ticket is created so the customer gets an answer later instead of waiting.

Step 4: Collect contact details

Enable Collect customer details so the agent asks for a name and email before handing over outside working hours.

Step 5: Write handoff rules in the instructions

Add a short rule, for example: “Transfer when the customer asks for a person, is upset, asks about refunds over $100, or when you cannot answer after one try. Tell them a team member will continue the chat.”

Step 6: Add specific routing with custom skills

For special cases, build a custom skill, such as transferring Spanish speakers to a Spanish team or product questions to Product Support.

Step 7: Test the full path

Preview only shows that a transfer would trigger. Test a real handoff on your website with a teammate online and again with everyone offline.

Check that the customer sees a clear message, such as “I’m connecting you with our team”, and an expected reply time.

When should the AI hand over?

SituationWhy hand over
The customer asks for a personRespect the request immediately
Angry or upset customerEmpathy and judgment matter
Refunds, cancellations, billing disputesMoney and policy exceptions
The agent cannot find an answerAvoid guessing
High-value sales leadsA human can close bigger deals

Make handoffs smooth for your team

  • Agents see the full AI conversation, so they should not ask the same questions again
  • On the Growth plan, use chat supervision and takeover to step in before a transfer
  • Tag transferred chats and review them weekly to improve the AI’s knowledge

8. Offer Discount Codes in AI Chat to Save Sales

A well-timed discount in chat can turn a hesitant shopper into a buyer. Offered to everyone, it just cuts your margin. This guide shows how to set up discounts in the Text AI Agent with rules that keep them targeted.

Step 1: Enable the Discount code skill

In the AI agent’s skills, turn on Discount code. Enter the code and a short description, for example “SAVE5 – 5% off your first order, valid this week”.

Step 2: Limit when it is offered

By default the skill shares the code when a customer asks for a discount. Add a rule in the instructions: “Only share the discount code if the customer asks for a discount or says the price is too high. Never offer it proactively.”

Step 3: Add a targeted custom skill (optional)

For more control, create a custom skill. Text’s own examples include a checkout coupon for shoppers hesitating at checkout and a bundle discount for buying two items, with the chat tagged for reporting.

Step 4: Tag discount chats

Create a tag such as discount-offered in Settings → Tags and add a Tag chat action, so you can measure how often discounts are used.

Step 5: Test it

In preview, ask “Do you have any discounts?” and “This is too expensive”. Then ask a normal product question and confirm the code is not offered.

Step 6: Measure and adjust

After two weeks, compare orders from chats with and without the discount tag. If most shoppers who get a code would have bought anyway, make the rule stricter.

Discount rules that protect margins

  • Use a dedicated chat-only code so you can track results
  • Prefer value offers (free shipping, bundle deals) over large percentage cuts
  • Never let the AI invent codes; it must only share codes you configured
  • Rotate or expire codes so they do not spread on coupon sites

Keep offers honest. Do not use fake countdown timers or “last chance” messages that are not true.

9. Run Multiple AI Agents for Different Websites or Languages

If you run several stores, brands or language markets, one AI agent with mixed knowledge gives mixed answers. Text lets you create a separate agent for each site or use case and route chats to the right one.

Step 1: Check your plan

Every license includes one AI agent. Multiple agents are available on Growth (up to 10) and Enterprise.

Step 2: Create a team for each agent

Routing sends chats to teams, so create one team per website, brand or language first.

Step 3: Add an agent for each site or use case

Go to Team → AI agents and add a new agent. Give each a clear internal name, such as “Store A – Sales”.

Step 4: Give each agent its own knowledge

Add only the website, files and articles for that brand or language. Shared knowledge is the main cause of wrong answers in multi-brand setups.

Step 5: Set tone, instructions and languages per agent

A luxury brand and a budget store need different tones. Use our instruction templates and set the language list for each agent.

Step 6: Create chat routing rules

Go to Settings → Routing → Chat routing. Add conditions based on page URL, website domain or customer country and choose the team that should receive those chats.

Step 7: Test every website

Open each site, start a chat and confirm the right agent answers with the right knowledge.

Within a team, Priority decides which agent gets chats first: Primary agents before Backup agents.

Common setups

SetupExample
One agent per websiteBrand A store and Brand B store
One agent per languageEnglish agent and German agent
One agent per jobSales agent on pricing pages, support agent in the help center

Good to know

  • Each AI agent can handle up to 500 concurrent chats
  • Only one agent handles a conversation at a time
  • Each website needs its own widget snippet (see our widget guide)

10. Measure and Improve Your AI Agent Resolution Rate

After launch, the work shifts from setup to improvement. A simple weekly review of a few metrics can lift your AI resolution rate and customer satisfaction within weeks.

Step 1: Open the Performance report

In Text, open the AI agent Performance section to see AI resolution, resolution rate, chats handled, CSAT and transferred chats.

Step 2: Read 10 transferred chats

Go to Archives and filter for transferred or low-rated chats. Note why each one needed a person.

Step 3: Group the reasons

Most problems fall into four groups: missing knowledge, unclear instructions, a needed action (skill) or a case that should always go to a human.

Step 4: Fix missing knowledge first

Add an article or update the source page for each missing answer. See how to train your AI agent.

Step 5: Add a skill for repeated requests

If customers keep asking for the same action, such as order status or demo booking, build a custom skill.

Step 6: Track resolutions against your plan

Essential includes 10 AI resolutions a month and Growth 200. Extra packs of 50 cost $49.50 and refill automatically, so watch volume during sales and campaigns.

A higher resolution rate is only good if CSAT stays healthy. Never block handoff just to raise the number.

Step 7: Log changes

Keep a simple note of what you changed each week. If CSAT drops, you can quickly see which change caused it.

The metrics that matter

MetricWhat it tells youWatch for
AI resolutionsChats the agent handledYour plan’s monthly allowance
AI resolution rateShare of chats solved without a humanA steady rise week over week
Chats handledTotal AI volumePeaks after campaigns
Transferred chatsWhere the AI needed helpRepeating topics
CSATCustomer satisfactionDrops after changes

Benchmarks to keep in perspective

Vendors publish high numbers: Text cites up to 74% to 80% AI resolution in its marketing and case studies. Your rate depends on how repetitive your questions are and how good your knowledge is. Compare your own numbers month over month rather than against vendor claims.

Frequently asked questions

Do I need to code to set up the Text AI Agent?

No. Setup happens in the Text app. You only paste one snippet (or install the Shopify or WordPress integration) to show the chat widget on your site.

How many AI resolutions do I get?

Essential includes 10 AI resolutions per month and Growth includes 200. Extra packs of 50 resolutions cost $49.50, as listed in October 2026. See our Text pricing guide.

Can the agent go live during the free trial?

Yes. The 14-day trial lets you test it with real visitors before you pay.

Can I use one Text account on several websites?

Yes. Click + New website widget for each site; each one gets its own snippet. To route each site to a different agent, see running multiple AI agents.

How large can uploaded files be?

Up to 50 MB per file, and PDFs up to 200 pages.

How long should AI agent instructions be?

Most good instructions are 150 to 400 words. Text allows up to 10,000 characters, but longer is not better.

How many custom skills can one AI agent have?

Up to 10 per AI agent, according to Text’s Help Center.

Is the Shopify integration an extra cost?

No. Text says the Shopify integration is included in every plan. AI resolutions are still limited per plan.

What happens if nobody is online?

With Create a ticket enabled, the chat becomes a ticket so your team can reply later by email.

Can the AI agent create new discount codes?

The default Discount code skill shares a predefined code. Text’s skill examples also mention generating offers through connected tools, which needs extra setup.

Can I run multiple AI agents on the Essential plan?

No. Essential includes one AI agent. Multiple agents require Growth or Enterprise.

What is a good AI resolution rate?

It depends on your business. Stores with many order and shipping questions often reach higher rates than complex B2B products. Aim for steady improvement with stable or rising CSAT.

Wrap-up

A strong Text AI Agent setup follows a clear order: create the agent, install the widget, train it on your content, write tight instructions, add skills and integrations, define when humans take over, and review the numbers every week. Start with the first four steps and add the rest once the basics answer your top questions correctly.

To decide whether Text is the right platform, see our Text review, the Text AI Agent pricing guide and our roundup of the best AI customer service agents.

This guide is independent and is not sponsored by Text. Some links may be affiliate links, which never change our recommendations. See our Affiliate Disclosure.

✉

Get new AI tutorials in your inbox

Step-by-step guides, new tool reviews and exclusive deals. One email a week, no spam.

Leave a Reply

Your email address will not be published. Required fields are marked *