workflows.fit
Back to n8n workflows
n8n templateFreeBy Mauricio Perera

AI-powered reasoning and response workflow

Overview: This workflow is designed to handle user inputs via a webhook, process the inputs with the Google Gemini API (specifically the gemini-2.0-flash-thinking-exp-1219 model), and return a structured response to t...

DevelopmentCore NodesUtilityHttp RequestRespond To WebhookWebhookCode
Loading interactive preview...

Template notes

Overview: This workflow is designed to handle user inputs via a webhook, process the inputs with the Google Gemini API (specifically the gemini-2.0-flash-thinking-exp-1219 model), and return a structured response to the user. The response includes three key elements: reasoning, the final answer, and citation URLs (if applicable). This workflow provides a robust solution for integrating AI reasoning into your processes.

This workflow can be utilized as a tool for AI-based agents, intelligent email drafting systems, or as a standalone intelligent automation solution.

---

Setup: 1. Webhook Configuration: - Ensure the webhook node is properly set up to accept GET requests with an input parameter. - Verify that the webhook path matches your application requirements. - Test the webhook using tools like Postman to ensure proper data formatting.

2. Google Gemini API Credentials: - Set up your Google Gemini API account credentials in the HTTP Request node. - Ensure API access and permissions are valid.

3. Parameter Adjustments: - Customize the temperature, topK, topP, and maxOutputTokens parameters to fit your use case.

---

Customization: 1. Input Parameters: - Modify the webhook path or parameters based on the data your application will send.