Error in sub node 'Anthropic chat model' or 'openai chat model'

Please help.

I’m getting this message:
Bad request - please check your parameters
Invalid ‘tools[0].function.name’: string does not match pattern. Expected a string that matches the pattern ‘[1]+$’.

I’m using openai (or anthropic) as the chat model and all I did was connect a google mail module to the AI Agent. If I create the scenario with a “google calendar”, it works fine. Also, if i connect a “read emails” module, no problems. Only as I connect a “send emails” module, it stops working. It somehow gets so messed up, that I have to delete the AI Agent and start over.

Information on your n8n setup

  • n8n version:
  • **Database (default:
  • **n8n EXECUTIONS_PROCESS setting (default
  • **Running n8n via n8n cloud,
  • Operating system:

  1. a-zA-Z0-9_- ↩︎

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @itssssschris

Thanks for posting here and welcome to the community! :raised_hands:

Could you please share your workflow? This would to debug by seeing your current configuration.

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


Thanks!

I just had the same exact issue. Watching this!

I have this issue as well… following!
N8N tech support says it’s not a bug.