The chatbot and the auto responder do not see your documents until you click Sync. That single button is the entire pipeline you need to think about.
The flow
- You write or edit a doc in WordPress.
- You click Sync under HelpWP -> Settings -> AI -> Feed AI.
- HelpWP sends every published doc (title, slug, body, topics, products, last-modified time) to the RAG service.
- The RAG service generates embeddings (vector representations) for each doc and stores them in a vector index keyed by your site key.
- From that moment on, every chatbot question and every auto-responder query retrieves the most relevant chunks from your docs and grounds the model’s answer on them.
Why a sync button instead of automatic
Two reasons:
- Predictability. You decide when content goes live for the AI. A draft you forgot to publish never accidentally appears in answers.
- Cost control. Embeddings are billed per token. Re-embedding the entire knowledge base on every save would add up; a manual sync lets you batch.
Incremental updates
The first sync embeds everything. Subsequent syncs only re-embed docs whose content or title changed since the last run, plus any new docs and minus any docs you have unpublished. The hash of each doc is kept on the RAG side; unchanged docs are skipped.
Where the AI uses what you synced
- Chatbot – every question hits
POST /wp-json/helpwp-rag/v1/ask. The RAG service retrieves the top matching chunks from your synced docs and asks the language model to answer using only those chunks. - Auto responder – every scheduled bot job hits
POST /wp-json/helpwp-rag/v1/respond. The same retrieval logic applies, plus a relevance score is returned. If the score is below the threshold you set in Settings -> AI -> Auto Responder, the bot stays quiet.
Forcing a full re-sync
Click Resync All instead of Sync. This invalidates every doc hash on the remote side and re-embeds everything. Useful after a large editorial pass.
What if I edit a doc after syncing
The chatbot will keep using the previous version of the doc until your next sync. There is no auto-refresh. Make a habit of clicking Sync after any significant doc update.
Was this doc helpful?