I’m trying to use our WordPress blog as a source of data. I know that there is an option to getAllPost but when I tried to use it, I got an error. I’m wondering if anyone has an example or an idea of how to do it. I have shared my current flow below.
What is the error message (if any)?
This is the error I got:
There was an error:
“The workflow did not return an item with the property ‘response’”
you need to set the “response” variable as the last node in your sub-workflow, similar to this:
Also, I noticed that in your tool name and description, you are introducing the tools to the agent as made for publishing a blog post, not reading from the blog.
That will likely cause the agent to still malfunction after the response issue has been fixed.
Ok, for the use as a tool, you need to return a single string as the value for “response”.
Since you are getting multiple blog posts, you need to combine the content of the list of blog posts returned by the WP-node into one string.
After using Google translate to figure out what you are asking the AI agent to do, you probably need a completely different approach to getting this to work.
It’s called RAG (Retrieval Augmented Generation).
Here’s a tutorial that covers all the basics and also includes a specific implementation using n8n: