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.