Hello everyone,
I’m working on a project to build an automated SEO analysis tool in n8n that uses the Gemini API. The key requirement is for each user to use their own Gemini API key, which is passed dynamically in a webhook payload.
I’ve successfully created a workflow that takes the user’s API key from the webhook and calls the Gemini API directly using the HTTP Request node. This works perfectly, and I can get a correct analysis report.
However, this approach forces me to lose the powerful built-in features of the AI Agent node, such as Memory and Tools. These features are essential for future enhancements of the tool.
Is there a way to dynamically pass credentials (the API key from the webhook) to the dedicated Google Gemini Chat Model node? I’ve checked the node’s settings, and the credential field seems to only accept static credentials saved in n8n’s credential store, with no option for a dynamic expression.
Any insights or alternative solutions would be greatly appreciated. Thank you!
