Welcome to the Alteryx Knowledge Base
Created/Edited -
Alteryx GenAI Tools
Overview
This example demonstrates how Alteryx One enables business analysts to unlock the power of AI by summarizing unstructured text data. Using the sample dataset book_reviews_dataset.csv, which contains multiple reviewer submissions for each Book_Title, we will walk through how to generate a concise, aggregated summary of all reviews associated with each book. Although reviews contain valuable insights, they are lengthy and numerous, making summarization essential for fast decision-making.
Sample Data: book_reviews_dataset.csv
Step 1: Create the Workflow and Prepare Data for AI
- Open Designer and load the CSV file into the workflow.
- Add the necessary data preparation tools to the canvas.
- Remove any sensitive information and drop columns that are not required for downstream analysis.
- Use the Summarize tool to:
- Group records by Book_Title
- Concatenate all values in the Review column so each book has a single combined review block
Step 2: Configure the GenAI Tools
- The Review column contains unstructured text data that must be analyzed by an LLM for summarization.
- Add the LLM Override and Prompt tools from the GenAI tool palette.
- If you have not yet joined the GenAI public preview, stay tuned for Alteryx announcements regarding availability.
- Connect to your preferred LLM provider.
- Design a prompt instructing the model to generate a single aggregate summary for all reviews associated with each Book_Title.
The response from the prompt tool:
Step 3: Verify and Validate the LLM Response
- Review the AI-generated output to ensure it is accurate, appropriate, and aligned with expectations.
- Refine and adjust the prompt if the response needs improvement.
- Rename the LLM Response column to Reviewers_Summary.
- Retain only the columns Book_Title and Reviewers_Summary for the final output format.
Following is the output from the above process:
Step 4: Create the Final Output
- Publish the results to your storage destination of choice.
- In this example, a CSV file is created as the final output.
- If a more concise, focused summary is needed, continue refining the prompt until the desired outcome is achieved.
Below is the review summary for each book title.
Complete Workflow
Conclusion
This workflow demonstrates how AI can be used within Alteryx to process unstructured text, communicate with an LLM through GenAI tools, and iteratively refine outputs. Analysts can determine what data is appropriate to send to the LLM, validate responses, and repeatedly enhance results until the desired outcome is reached.
If you are exploring AI-driven use cases or seeking guidance on how to begin, the Alteryx team is here to support you at every step.
References
Here are useful links to help you continue your AI journey with Alteryx One:
- https://help.alteryx.com/current/en/designer/what-s-new-in-designer.html#new-features--genai-tools
- https://help.alteryx.com/current/en/designer/tools/genai.html#genai-7193048
- https://www.youtube.com/watch?v=FcCo0-Ofo8U
- https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-the-openai-api