Keyword researcher
This workflow automates the keyword research process by transforming raw trend data into a comprehensive, actionable SEO analysis report.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
GoogleTrends-7mgio[Google Trends]
style GoogleTrends-7mgio stroke:#a170ff
Prompt-4gg5e[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt para reporte]
style Prompt-4gg5e stroke:#a170ff
OpenAIModel-abi70[<div><img alt="logo" src="/_astro/openAI.BhmuxEs3.svg" style="height: 20px !important;width: 20px !important"/></div>OpenAI]
style OpenAIModel-abi70 stroke:#a170ff
ChatOutput-6w4c9[<div><img alt="logo" src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-6w4c9 stroke:#a170ff
ChatInput-it3nj[<div><img alt="logo" src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Input]
style ChatInput-it3nj stroke:#a170ff
GoogleTrends-7mgio -.- Prompt-4gg5e
linkStyle 0 stroke:#a170ff
Prompt-4gg5e -.- OpenAIModel-abi70
linkStyle 1 stroke:#a170ff
OpenAIModel-abi70 -.- ChatOutput-6w4c9
linkStyle 2 stroke:#a170ff
ChatInput-it3nj -.- GoogleTrends-7mgio
linkStyle 3 stroke:#a170ff
Keyword Researcher Workflow Documentation
đź§© Overview
This workflow automates the SEO keyword research process by converting raw search trend data into a structured, Markdown‑formatted report. The system starts with a user‑submitted keyword, retrieves trend information from Google Trends, feeds the data into a prompt template, generates an analysis using an OpenAI language model, and finally presents the report in a chat interface.
⚙️ Main Features
- Retrieves real‑time keyword trend data from Google Trends.
- Dynamically constructs a prompt incorporating the retrieved data.
- Generates a comprehensive keyword research report with an AI model.
- Outputs the report as Markdown within the chat conversation.
- Provides a clear, end‑to‑end flow from user query to actionable insights.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Captures the user’s keyword query and initiates the process. | Text entered by the user (e.g., “artificial intelligence, machine learning”). | Message containing the user query. |
| Google Trends | Queries the Google Trends API for search interest data based on the supplied keywords. | Keyword string from Chat Input; language code (default en‑US). | Message with trend data in a structured format. |
| Prompt | Builds a prompt template that embeds the trend data and instructs the model to generate a detailed report. | Trend data message from Google Trends. | Prompt message ready for the language model. |
| OpenAI Model | Generates the keyword research report using the specified GPT‑4o model. | Prompt message from Prompt. | Text output containing the Markdown report. |
| Chat Output | Displays the generated report in the chat interface, formatted as Markdown. | Text output from OpenAI Model. | Chat message presented to the user. |
đź§ Notes
- The workflow relies on valid API keys for both Google Trends and OpenAI; missing credentials will halt execution.
- Google Trends may return incomplete data if the requested keywords are too obscure or the API rate limit is exceeded.
- The OpenAI component is configured to use the
gpt‑4omodel; changing the model name requires updating the component configuration. - The prompt template explicitly instructs the model not to fabricate data; it should only report the information returned by Google Trends.
- Output is rendered as Markdown; any Markdown processing in the chat client is required for proper formatting.
- The system is designed for a single keyword or a comma‑separated list of keywords; complex query structures may not be parsed correctly.
- The Label Component present in the graph is used solely for displaying workflow metadata and does not affect data flow.