Simulate business decisions with Google Sheets, GPT-4.1 and Slack

Go to Workflow
1 views
Built by Oneclick AI Squad Oneclick AI Squad
Created on June 13, 2026

Description

Quick Overview
This workflow simulates business decision scenarios using Google Sheets data and AI analysis, generating what-if reports and recommendations for pricing, campaign, or hiring moves, and logs results to Google Sheets and Slack.

How it works
Listens for incoming scenario requests via webhook or runs weekly on a schedule.
Prepares scenario details and validates the scenario type.
Fetches historical business data from Google Sheets.
Parses and summarizes historical data for scenario context.
Constructs an AI-ready prompt with scenario and historical context.
Uses an AI model (OpenAI or compatible) to simulate optimistic, realistic, and pessimistic outcomes, generating recommendations.
Formats the results into a structured simulation report.
Logs the simulation summary into a Google Sheets log and sends a notification to Slack.
Returns the full simulation report and recommendation to the original requester via the webhook.

Setup
Add your Google Sheets API key and enter your historical and log sheet IDs in the relevant HTTP Request nodes.
Provide your OpenAI (or compatible AI) API credentials in the workflow setup.
Update the Slack webhook URL in the notification node for simulation alerts.
Populate your Google Sheet with relevant historical business data using the required structure.
If using the webhook, copy its URL and configure the scenario source to send requests to that endpoint.

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi