Add files and text snippets
Not everything your customers ask about is on your website. Price lists, brochures, menus and policies often live in documents. Upload PDFs and other files, or paste short facts as text snippets, to train your chatbot on what isn't on your site. It answers from them just as it answers from your pages.
You need an agent. Only owners and admins can add or delete files and snippets; members can look but not change. Everything here lives in Knowledge (under Train) and belongs to one agent.
Supported files and size limits
- File types: PDF, Word (DOCX), plain text (TXT), Markdown (MD) and CSV.
- Size of one file: up to 25 MB.
- Files per agent: up to 200 files and 500 MB in all.
The Storage card on Files shows how much you have used. Files don't count toward your plan's trained pages.
Scanned PDFs (pictures of pages) can't be read yet, because they hold no text. Upload a PDF with real text, or paste the important parts as snippets.
Upload a file
- Open Knowledge and go to Files. You can also click Add and choose File.
- Drag your files onto the box, or click it to choose them from your computer. You can add several at once.
- Each file shows Uploading, then Processing… while it is read, then Trained.
A trained file shows how many sections the agent found in it. To find a file in a long list, use Search files….
To update a file, delete the old one and upload the new version.
Add a text snippet
A snippet is a short fact the agent should know that isn't written anywhere else. For example: "Home collection starts at 6 AM every day, including Sundays."
- Open Knowledge and go to Text snippets. You can also click Add and choose Text snippet.
- Type the fact and click Save.
A snippet can be up to 4,000 characters. Split longer text into several snippets, one topic each, so the agent finds the right one. Use Edit or Delete on a snippet to change it.
Snippets are background facts the agent puts in its own words. For an answer that must be given exactly as written, add a Q&A pair instead.
When changes go live
- A snippet can be used right away, as soon as you save it.
- A file can be used once it shows Trained, usually within a minute.
- Deleting a file or a snippet removes it from what the agent knows at once.
You don't need to press Sync & train for files or snippets. Ask a question about the new content in the Playground to check.
Answers that come from files and snippets don't show a source link to visitors. Only website pages are linked, because your files have no public address.
Files that fail to read
A file that couldn't be read shows Failed and the reason. Common reasons:
- No text was found. The file may be a scanned PDF, or empty.
- The PDF is damaged or protected with a password. Save it again without a password.
- The file has too much text. Split it into smaller files.
- The upload didn't finish. Click Retry, or delete it and upload it again.
Click Retry to read the file again after a short outage. If it keeps failing, fix the file, delete the failed one and upload it again.