AI Chat, process Agent response after Agent reply is sent to user
I have tried a lot of different approaches, but seem unable to process the agent reply AFTER it was returned to the chat.
I want to classify people and locations from the agent reply, for future use but the classification should not be part of the response to the chat window. Though all attempts I tried resulted in the classification being returned to chat window instead of the original agent response.
If I have a classifier to run on the response after the ai agent, it will become the response to the chat, effectively overwriting the original response from the agent.
I tried “respond to webhook” but that doesnt seem to work when using the chat trigger.
I also tried to use the classifier as a tool (via new workflow), but it never gets called, even through I prompt the agent to use that tool every time.
I have searched this forum, and browsed hundreds of examples but not found any examples of post-processesing of the agents answer.
I hope someone can point me in the right direction
Information on your n8n setup
- n8nVersion: 1.71.3
- platform: docker (self-hosted)
- nodeJsVersion: 20.18.0
- database: sqlite
- executionMode: regular
- concurrency: -1
- license: enterprise (production)