Reporte de estado de productos de Woocomerce
Este flujo hace un reporte del estado de los productos de una tienda virtual implementada en woocomerce
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 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 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 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
Reporte de estado de productos de Woocomerce
🧩 Overview
This workflow automates the generation of an executive report on the status of products within a WooCommerce store. It extracts product data, transforms it into a structured format, and uses an intelligent AI agent to analyze the information. The agent synthesizes a comprehensive report focused on inventory status, pricing strategy, and catalog organization, providing actionable insights to improve product presentation and catalog management.
⚙️ Main Features
- Automatically fetches product data from a WooCommerce store via its REST API.
- Transforms raw product data into a clean, structured JSON format suitable for analysis.
- Utilizes a configurable AI agent to perform a detailed, multi-faceted analysis of the product catalog.
- Delivers a final, formatted executive report directly to a chat interface for easy review.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| WooCommerce | Data Extraction: Connects to the WooCommerce store and retrieves a list of product data. | Store API credentials, product query parameters (e.g., limit). | Raw product data. |
| Parse Data | Data Transformation: Extracts specific fields from the raw product data and formats them into a readable text template. | Raw product data from WooCommerce, a custom text template. | Formatted text containing key product details. |
| Prompt | JSON Formatting: Packages the formatted product text into a structured JSON object to prepare it for the AI agent. | Formatted product text. | A JSON-formatted message containing the product dataset. |
| Google Generative AI Model | AI Model Provider: Supplies the language model that powers the analytical capabilities of the agent. | API key, model configuration (e.g., temperature, token limit). | A configured language model instance. |
| Advanced Agent | Analysis & Reporting: An intelligent agent that receives the product data JSON and, guided by a detailed system prompt, analyzes it to generate an executive report. | JSON-formatted product data, the language model, a system prompt defining the analysis criteria. | A comprehensive analytical report. |
| Chat Output | Result Delivery: Presents the final executive report generated by the agent in a readable chat format. | The analytical report from the agent. | A displayed chat message containing the report. |
🧠 Notes
- The workflow requires valid WooCommerce API credentials (Consumer Key and Secret) to connect to the target store.
- The analysis is guided by a detailed system prompt within the Advanced Agent, which defines the six critical aspects of the report: inventory status, pricing strategy, information completeness, catalog organization, update frequency, and technical configuration.
- The Google Generative AI Model component must be configured with a valid API key and a supported model name.
- The output is designed as an executive summary, focusing on quantitative metrics, identified issues, and actionable recommendations rather than raw data.