WooCommerce product status report
This flow generates a report of the status of the products of a virtual store implemented in WooCommerce.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
woocommerce-i6vb7[optener productos de WooCommerce]
style woocommerce-i6vb7 stroke:#a170ff
GoogleGenerativeAIModel-48rjm[Gemini]
style GoogleGenerativeAIModel-48rjm stroke:#a170ff
ParseData-1wdiw[<div><img alt="logo" src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>Extraer datos requeridos para el análisis.]
style ParseData-1wdiw stroke:#a170ff
ChatOutput-i4e44[<div><img alt="logo" src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-i4e44 stroke:#a170ff
Prompt-tx8sr[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Formateo de datos a JSON]
style Prompt-tx8sr stroke:#a170ff
AdvancedAgent-u831e[Agent]
style AdvancedAgent-u831e stroke:#a170ff
woocommerce-i6vb7 -.- ParseData-1wdiw
linkStyle 0 stroke:#a170ff
ParseData-1wdiw -.- Prompt-tx8sr
linkStyle 1 stroke:#a170ff
Prompt-tx8sr -.- AdvancedAgent-u831e
linkStyle 2 stroke:#a170ff
GoogleGenerativeAIModel-48rjm -.- AdvancedAgent-u831e
linkStyle 3 stroke:#a170ff
AdvancedAgent-u831e -.- ChatOutput-i4e44
linkStyle 4 stroke:#a170ff
WooCommerce Product Status Report
🧩 Overview
This workflow automatically retrieves product data from a WooCommerce store, processes the data into a structured text format, and feeds it into an advanced AI agent that generates an executive report. The report covers inventory status, pricing strategy, catalog completeness, organization, maintenance, and technical configuration. The final output is presented as a chat message.
⚙️ Main Features
- Data Retrieval – Pulls product information from a WooCommerce REST API.
- Data Formatting – Transforms raw JSON into a human‑readable template.
- Prompt Generation – Creates a JSON prompt that incorporates the formatted data.
- AI Analysis – Uses a Gemini language model within an advanced agent to interpret the data.
- Structured Output – Produces an executive report with actionable insights.
- Chat Presentation – Displays the report in a chat‑style interface.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| WooCommerce API | Retrieves the list of products from the WooCommerce store. | API credentials, store URL, entity type (Product), operation (Get), query limits, filters. | Raw product data (JSON). |
| Data Extraction | Converts the raw product data into a formatted text string using a template. | Raw product data. | Formatted text string. |
| JSON Prompt | Builds a prompt message that embeds the formatted text and additional JSON context. | Formatted text string. | Prompt message (JSON). |
| Gemini | Provides the language‑model component that the agent will use for reasoning. | Model configuration (Gemini‑2.5‑flash). | Language‑model instance. |
| Advanced Agent | Interprets the prompt, invokes tools (including the WooCommerce API), and crafts the report. | Prompt message, language‑model instance, system prompt detailing analysis objectives, tool list. | Report text (executive summary). |
| Chat Output | Renders the agent’s report as a chat message in the interface. | Report text. | Displayed chat message. |
🧠 Notes
- The workflow relies on valid WooCommerce API credentials; without them the data retrieval step will fail.
- The system prompt supplied to the agent defines the six critical analysis aspects and specifies that the output should be concise, data‑driven, and actionable.
- The Gemini model is configured with a moderate temperature and no streaming; this can be adjusted in the Gemini component settings.
- The advanced agent can maintain state across calls if the
use_checkpointeroption is enabled, enabling context‑aware interactions in subsequent runs. - Only the connected components above participate in the main data path; auxiliary label components are present for visual annotation but do not influence the output.
- All outputs are plain text; if structured output is desired, set
use_structured_outputto true in the agent configuration and provide an appropriate JSON schema.