Skip to content

AI segmentation POC showing how Databricks PySpark pipelines can enrich customer data for activation in Salesforce Data Cloud and Agentforce. Demonstrates data wrangling with DataFrames and CRM Analytics visualization for AI-driven engagements.

Notifications You must be signed in to change notification settings

lacharydev/databricks-ai-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Databricks AI Segmentation β†’ Salesforce Data Cloud

This repository contains a lightweight Databricks / PySpark notebook that demonstrates how customer segmentation models can be operationalized within Salesforce Data Cloud and Agentforce.


🎯 Scenario: Customer Segmentation for AI-Driven Engagement

A marketing team wants to identify high-value and at-risk customers using transaction data processed in Databricks.
The enriched dataset is exported to Salesforce Data Cloud for downstream activation in CRM Analytics and Agentforce.


🧱 Architecture

Databricks (PySpark DataFrames) β†’ Feature Engineering β†’ Segment CSV β†’ Salesforce Data Cloud (DMO) β†’ CRM Analytics β†’ Agentforce Actions


🧩 Repository Contents

Path Description
notebooks/segmentation_notebook.ipynb Jupyter/Databricks notebook that computes customer RFM-style segments
data/sample_transactions.csv Synthetic dataset for demo
images/architecture_diagram.png Visualization of architecture
docs/demo_story.md Full enablement context and storytelling guide

πŸ§ͺ Key Demo Steps

  1. Load sample transactions in Databricks or local PySpark.
  2. Aggregate by customer and compute metrics (total spend, recency, frequency).
  3. Label segments (High/Medium/Low value).
  4. Export results as segments.csv.
  5. Ingest into Salesforce Data Cloud and visualize in CRM Analytics.

πŸ’¬ Demo Talking Points

  • Shows integration of external AI/ML pipelines with Data Cloud.
  • Demonstrates how DataFrames (PySpark/pandas) fit into Salesforce architecture.
  • Storytelling bridge for SEs: external data β†’ unified Data Cloud profile β†’ AI-driven actions.

🧠 Intended Audience

Salesforce Solution Engineers, Data Cloud & AI practitioners, and community learners building Data Cloud–AI demo flows.


πŸ“š Related Reading


πŸ“„ License

MIT Β© Lakshmi Achary
(Sample enablement demo β€” not affiliated with Salesforce.)

About

AI segmentation POC showing how Databricks PySpark pipelines can enrich customer data for activation in Salesforce Data Cloud and Agentforce. Demonstrates data wrangling with DataFrames and CRM Analytics visualization for AI-driven engagements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published