Problem with data processing by AI Agent node for specific text

Describe the problem/error/question

I processing newsletters data using n8n worklfow. recently encountered an issue where one of the newsletter processing started failing specifically at the AI Agent node. After multiple rounds of debugging I found that one of the newsletters has a text “lawsuit filed by activist Robby Starbuck”. Here specifically the name ‘Robby Starbuck’ is causing problem with AI Agent node. It gives the error “[ERROR: Cannot read properties of undefined (reading ‘message’)]”. With the AI agent I use Gemini model.

What is the error message (if any)?

[ERROR: Cannot read properties of undefined (reading ‘message’)]

Please share your workflow

Share the output returned by the last node

Google is moving to dismiss a $15 million defamation lawsuit who claims its AI chatbot falsely linked him to sexual assault allegations and white nationalism. Unlike Meta, which recently settled a similar suit and even hired Starbucks as an advisor, Google argues the outputs resulted from “misuse of developer tools” and aren’t grounds for legal liability.

Information on your n8n setup

  • n8n version: 1.113.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Using latest n8n image with podman
  • Operating system: MacOS