Problem: My AI Agent in n8n Sometimes Returns Wrong Data or Code Responses

Hello team,
I built an Arabic product-pricing chatbot in n8n connected to Airtable and Pinecone.
Sometimes the AI Agent returns wrong answers or responds with code instead of text.

I need help to make the agent strictly read prices only from Airtable and stop hallucinating.

:small_blue_diamond: Workflow JSON file is attached
:small_blue_diamond: Error behavior screenshot attached

My goal:

The bot should answer only if data exists in Airtable — otherwise ask the user for clarification.

Thank you!

Hey there, I can see from your workflow that you’re using DeepSeek as your chat model. The hallucinations and weird code outputs you’re experiencing are most likely caused by your temperature settings being too high. Can you check what your Sampling Temperature is set to in the DeepSeek Chat Model node? Click on that node and look for the temperature parameter. If it’s anything above 0.3, that’s definitely your problem.