Retail & CPG

Turning retail data into decisions

Peramal helps retail and CPG organizations transform complex data into intelligent, accessible and actionable insights through AI, analytics and modern technology.

The retail challenge

Retail generates data everywhere. Finding the right answer shouldn't require a data team.

Retail business teams rely on data across sales, orders, invoices, collections, customers and products. Yet answering everyday business questions can require technical teams to write SQL, interpret complex schemas and prepare reports.

01

Dependency on BI teams

Business users often depend on technical teams for routine data questions.

02

Complex data structures

Complex Snowflake schemas can make self-service analytics difficult.

03

Inconsistent business definitions

Metrics such as revenue, open orders and collection rate require precise definitions.

04

Data across multiple schemas

Business information can exist across different schemas and levels of detail.

05

Changing data structures

Frequent schema changes can make AI-generated SQL difficult to maintain.

06

Trust & transparency

Users need confidence in AI-generated answers and visibility into how results are produced.

From fragmented data to a shared business language

SalesOrdersInvoicesCollectionsCustomersProducts
Retail technology capabilities

Technology that helps retail teams move from data to action

01

Conversational analytics

Enable business users to interact with enterprise data using natural language.

02

Data & analytics

Transform complex enterprise data into trusted, actionable business intelligence.

03

AI & machine learning

Apply generative AI and intelligent workflows to enterprise decision-making.

04

Semantic layer design

Create governed business definitions, metrics, relationships and SQL guidance.

05

Enterprise data platforms

Build secure data solutions around modern platforms such as Snowflake.

06

Cloud & application engineering

Build secure, scalable analytics applications and cloud-native services.

Featured case study
Retail & CPG

Transforming retail data into answers with conversational AI

industry
Retail & CPG
domain
Strategic Merchandising & Analytics
service
Conversational Analytics & Semantic-Layer Design
technology
Snowflake, Claude, Python, Flask, Azure
01
Ask AI
02
Business question
03
AI-generated SQL
04
Data
05
Insight
The challenge

When business questions become technical requests

Business users depended on BI teams for routine data questions.

Complex Snowflake schemas made self-service analytics difficult.

Business metrics such as revenue, open orders and collection rate required precise definitions.

Data was distributed across multiple schemas and different levels of detail.

Frequent schema changes created challenges for AI-generated SQL.

Users needed transparency and confidence in AI-generated answers.

Connecting generative AI to production data required strong security controls.

Business definitions needed to evolve without requiring application redeployment.

The solution

Ask business questions in plain English. Get governed, auditable answers.

Peramal designed and deployed a self-service conversational analytics application that enables business users to ask questions in plain English and receive governed, auditable answers directly from Snowflake.

01

User

Business question

02

Ask AI

Natural-language interface

03

Claude

AI interpretation

04

Semantic layer

Business context

05

Live Snowflake metadata

Schema awareness

06

Generated SQL

Business-rule compliant

07

Read-only Snowflake

Governed execution

08

Result

Insight + chart

Conversational analytics

Ask. Understand. Decide.

Conversational Analytics

What was our revenue last quarter?

Generated SQL
SELECT SUM(revenue) AS total_revenue
FROM sales.fact_sales
WHERE quarter = 'Q4'
  AND year = 2024;
Result

Revenue result

Insight

Revenue is calculated using the governed business definition from the semantic layer, ensuring consistency across all analytics.

Platform capabilities

Natural-language questions
Generated SQL
Result sets
Business insights
Chart specifications
Transparent verification
Business semantic layer

Give AI a governed understanding of the business

A YAML-based semantic layer defines business metrics, rules, relationships and SQL guidance so business logic remains explicit, consistent and maintainable.

RevenueOpen ordersCollection rateCustomersProducts
semantic-layer.yaml
metric:
  name: revenue
  definition: Total invoiced sales amount
  table: sales.fact_sales
  column: revenue_amount
  guidance: >
    Use approved sales data only.
    Exclude returns and adjustments.

metric:
  name: collection_rate
  definition: Percentage of invoiced amount collected
  tables:
    - sales.fact_invoices
    - sales.fact_collections
  guidance: >
    Calculate as collected / invoiced.
    Filter by fiscal period.

Representative example — not actual production configuration.

Designed for accuracy, transparency and secure enterprise data access

Application flow

01
User
02
Flask application
03
Claude
04
Semantic layer + Snowflake INFORMATION_SCHEMA
05
Structured SQL
06
Read-only Snowflake role
07
Results → Insights / Charts

Schema editor

A schema editor allows data teams to update business definitions without redeploying the application.

Schema editor
Business definitions
Updated semantic layer
Impact & benefits

Making enterprise analytics faster, more transparent and accessible

Answers in seconds

Enabled business users to get answers to routine data questions in seconds.

Reduced BI dependency

Reduced dependency on BI teams for ad-hoc analytics requests.

Consistent definitions

Established consistent definitions for key business metrics.

Transparent results

Improved trust through transparent, inspectable SQL and result sets.

No-deploy updates

Enabled data teams to manage business logic without engineering releases.

Secure AI architecture

Created a secure architecture for using generative AI with production enterprise data.

Natural-language access

Improved accessibility of Snowflake data through a natural-language interface.

Reusable pattern

Created a reusable conversational analytics pattern that can be extended to other business domains.

Powered by modern data, AI and cloud technologies

S

Snowflake

Enterprise data warehouse

Centralized enterprise data warehouse providing governed access to sales, orders, invoices, customers, products and operational data.

A

Anthropic Claude

Generative AI

Generative AI translating natural-language business questions into structured, business-rule-compliant SQL and actionable insights.

P

Python + Flask

Application layer

Python-based Flask application providing the application layer and analytics workflows.

A

Azure

Cloud platform

Azure App Service providing the cloud deployment platform.

Ready to make retail data easier to understand?

Explore how AI, analytics and governed data platforms can help your teams make faster, more informed decisions.