Integrating WordPress FAQ Data into a Chatbot: Seeking Guidance

I’m a beginner with n8n and I’m trying to create a chatbot that uses info from my WordPress FAQ page. I’ve set up a workflow with a WordPress node that’s linked to my FAQ page. But there’s a problem.

When I ask the chatbot something, it looks like the WordPress node is working, but the bot gives ChatGPT answers instead of using my FAQ data. How can I make sure the bot checks my FAQ first before using ChatGPT?

Here’s what I’ve done so far:

  • Set up the WordPress node (it’s connecting fine)
  • Chose ‘Page’ as the resource and ‘Get’ as the operation
  • Put in the post ID for my FAQ page

I’d really like some help to make this work better. Any tips on how to improve this setup? Thanks!

To ensure your chatbot prioritizes your FAQ data, you’ll need to implement a decision-making process in your workflow. After the WordPress node, add a ‘Function’ node to parse and structure the FAQ content. Then, incorporate a ‘Switch’ node to determine if the user’s query matches any FAQ entries. If there’s a match, return the FAQ answer. If not, route the query to ChatGPT as a fallback. This approach will create a more efficient and accurate chatbot that leverages your custom content before relying on general AI responses. Remember to regularly update your FAQ to keep the chatbot’s knowledge current and relevant.

hey owennebula55, sounds like ur on the right track! have u tried using a ‘function’ node after the wordpress one? u can use it to parse the faq content before sending it to the chatbot. also, make sure ur chatbot node is configured to prioritize custom data. hope this helps, good luck with ur project!