Welcome to the Alteryx Knowledge Base
Created/Edited -
Summarize unstructured text data using LiveQuery
- Alteryx Designer Cloud (Cloud Native mode)
- Snowflake Connection with access to a schema containing the BOOKREVIEWS table
- LiveQuery feature enabled in Alteryx One Platform
- Workspace Admin access on Alteryx One Platform
- BOOKREVIEWS table created in Snowflake with sample data from book_reviews_dataset.csv
- Snowflake connection configured in Designer Cloud
Overview
This article demonstrates how to summarize unstructured text data using LiveQuery in Alteryx Designer Cloud. LiveQuery enables analysts to leverage AI capabilities on data stored in a cloud data warehouse—without moving or replicating it into the Alteryx One Platform.
Using a sample dataset (book_reviews_dataset.csv) loaded into a Snowflake table named BOOKREVIEWS, this how-to guides you through building a workflow that uses LiveQuery to generate concise, AI-powered summaries of book reviews.
Sample Data
By following this article, you will learn to:
-
Enable and configure LiveQuery in Designer Cloud.
-
Connect to Snowflake and prepare unstructured text data for summarization.
-
Apply the AI_SUMMARIZE_AGG function through SQL Transform to generate aggregated summaries.
-
Validate AI-generated responses and publish final results back to Snowflake.
When to use this:
Use this method when you need to summarize large amounts of unstructured text (e.g., customer reviews or comments) directly within your data warehouse using AI, without data movement or manual extraction.
Outcome:
A Snowflake table containing summarized text for each unique book title.
Steps:
1. Enable Live Query
-
Sign in as a Workspace Admin on the Alteryx One Platform.
-
Navigate to Profile menu > Workspace Admin > Settings.
-
Enable Live Query (Early Preview).
2. Create a Designer Cloud workflow and Prepare Data
-
Create a new workflow in Designer Cloud.
-
Switch to Cloud Native mode.
-
Add the Input Data tool and connect to your Snowflake environment.
-
Load the BOOKREVIEWS table into the workflow.
-
Add data preparation tools as needed:
-
Remove any sensitive information.
-
Drop unnecessary columns.
-
-
Go to Options > Enable Live Query, select the Snowflake connection, and confirm the public schema.
3. Use SQL Transform to summarize reviews using AI_SUMMARIZE_AGG
-
Add a SQL Transform tool to the canvas.
-
Write the following SQL statement to summarize the
Reviewcolumn using Snowflake’s Intelligence Cortex AI functions:
SELECT
"Book_Title",
AI_SUMMARIZE_AGG("Review") AS "Reviewers Summary"
FROM upstream
GROUP BY "Book_Title";
Note: "upstream" refers to the input data connected to the SQL Transform tool.
4. Verify and Validate AI responses
-
Review the AI-generated summaries for accuracy and appropriateness.
-
Make adjustments as needed to ensure alignment with expectations.
5. Output summarized data to Snowflake
-
Add an Output Data tool.
-
Configure the output to publish results to your preferred storage destination.
-
In this example, a Snowflake table is created as the final output containing summarized reviews for each book title.
6. Below is the review summary for each book title.
7. Complete Workflow
Conclusion
This workflow demonstrates how AI can be used within Alteryx to process unstructured text using Live Query, communicate with an LLM through Live Query and cloud data platform-specific AI functions. This example demonstrated using Snowflake’s AI functions. Analysts can determine what data is appropriate to send to the AI functions, 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:
- LiveQuery | Alteryx Help
- Introducing LiveQuery
- Snowflake Cortex AI SQL Functions
Tip: You can reuse this workflow for any other unstructured text dataset—simply replace the source table and column references.