User Confirmation on vector Search

Hello I’m automating a workflow in [n8n] and want to create a simple chatbot/agent that:

  1. Receives user input through a chat window.
  2. Extracts relevant information (time and project name) from the user’s message.
  3. Uses the project name to perform a vectorized search and returns the top 1 result, comparing by name but retrieving the project_id.
  4. Once the time and project_id are obtained:
  • First, confirm with the client using a message like:
    • “120 minutes will be logged to the project: XXxx with project_id: XXxxxx. Is that correct?”*
  • If the client approves, proceed with logging the time.

Issue:

I tried implementing the first part, and while the vector search correctly returns the project_id, the message sent to the user states that no project_id was found.

Question:

Is this feasible to implement? How can I correctly send the message with the retrieved project_id?

workflow

Information on n8n setup

  • n8n version: 1.72.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux Ubuntu

This is likely a data access issue between your vector search results and confirmation message. fix it by Adding a Function node after your vector search to prepare data

There has been some fixes related to AI tools.
After updating to 1.80.4 most of them are solved.

If you think this is a bug, please try a more recent version of n8n

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.