Quickstart
Learn how to get started with Soda.
This quickstart shows how Soda detects unexpected data issues by leveraging AI powered Anomaly Detection and prevents future problems by using data contracts.
Scenario
A data engineer at a retail company needs to maintain the regional_sales dataset so their team can manage regional sales data from hundreds of stores across the country. The dataset feeds executive dashboards and downstream ML models for inventory planning. Accuracy and freshness are critical, so you need both:
Automated anomaly detection on key metrics (row counts, freshness, schema drift)
Proactive enforcement of business rules via data contracts
Sign up
Contact us at support@soda.io to get an account set up.
After signing up, you can follow the steps below to set up a data source and start improving data quality.
Add a Data Source
Soda AI, paired with Soda Cloud’s no-code UI, lets you connect to any data source, onboard datasets, and monitor results in minutes.
Establish connection
Navigate to the Data Sources > Create a New data source
Fill out the connection details. Then, click on Connect.

Learn more details on how to Onboard data sources & datasets.
Onboard datasets
You can onboard datasets by asking Soda AI to do it for you.

If you prefer to onboard datasets manually, head to the onboarding page.
Enable Metric Monitoring
You can enable Metric Monitoring in several ways:
While manually onboarding
By navigating to the dataset > Metric Monitoring tab
By asking Soda AI to enable Metric Monitoring
If you onboarded the dataset via Soda AI, the dataset page won't show any monitors yet.
Soda AI can enable Metric Monitoring for you:

1. Review Anomaly Detection results
Congratulations, you’ve onboarded your first dataset! Now let’s make sure you always know what’s happening with it.
That’s where Metric Monitoring comes in. It automatically tracks key metrics like volume, freshness, and schema changes, with no manual setup required. You’ll spot anomalies, detect trends, and catch unexpected shifts before they become problems.
Open the Metric Monitors dashboard
Go to Datasets → select the dataset to inspect.

Navigate to the Metric Monitors tab to learn more about the metrics calculated.
If enabled, key metrics are automatically monitored by default, helping you detect pipeline issues, data delays, and unexpected structural changes as they happen.

View anomalies in a specific monitor
In this guide, we will focus on the Most recent timestamp monitor. The panel shows that it was expected to be in a range of 0 - 5m 31s, but the recorded value at scan time was 56m 49s. In order to take a closer look:
Click the Most recent timestamp (or monitor of your choice) block.

In the monitor page you’ll see:
any red-dot anomalies flagged by the model,
measured value vs. expected range,
buttons to Mark as expected, Create new incident, etc.
Flag an outlier as "expected" or investigate it further.
Soda’s anomaly detection engine was built in-house (no third-party libraries) and optimized for high precision. It continuously adapts to your data patterns, and it incorporates your feedback to reduce false alarms. Designed to minimize false positives and missed detections, it shows a 70% improvement in detecting anomalous data quality metrics compared to Facebook Prophet across hundreds of diverse, internally curated datasets containing known data quality issues.
The Anomaly Detection Algorithm offers complete control and transparency in the modeling process to allow for interpretability and adaptations. It features high accuracy while leveraging historical data, delivering improvements over time.
2. Attack the Issues at Source (No-Code)
Our automated anomaly detection has just done the heavy lifting for you, identifying unusual patterns and potential data issues without any setup required.
But to prevent those issues from happening again, you must define exactly what your data should look like; every column, every rule, every expectation.
That’s where Data Contracts come in. They let you proactively set the standards for your data, so problems like this are flagged or even prevented before they impact your business.
Create a Data Contract
Create a new data contract to define and enforce data quality expectations.
In your Dataset Details page, go to the Checks tab.
Click Create Contract.

Build a data contract.
When creating a data contract, Soda will connect to your dataset and build a data contract template based on the dataset schema. From this point, you can start adding both dataset-level checks and column-level checks, as well as defining a verification schedule or a partition.

Toggle View Code if you’d like to inspect the generated SodaCL/YAML. This gives you access to the full contract code.

That’s right: with Soda, you can edit a contract using either a no-code interface or directly in code. This ensures an optimal experience for all users while also providing a version-controlled code format that can be synced with a Git repository.
3. Attack the Issues at Source (Code)
You can trigger contract verification programmatically as part of your pipeline, so your data gets tested every time it runs.
We’ve prepared an example notebook to show you how it works:
Open the following Notebook example: https://colab.research.google.com/drive/1zkV_2tLJ4ohdzmKGS3LgdFDDnTNTUXew?usp=sharing
In your Python environment, first install the Soda Core library
Create a YAML file
In the same environment, create a sc_config.yml file that contains your API keys, which are necessary to connect to Soda Cloud. You can get your API keys from your Profile: Generate API keys
The sc_config.yml file should look like the following:
Trigger contract verification
Now you are ready to trigger the verification of the contract. To do that just provide:
the identifier of your dataset
the path to the configuration file you just created in the previous step
This will trigger a verification using Soda Runner and return the logs.
Create a verify_contract.py file in your environment with the code below (or run it from a Jupyter notebook/Python interpreter):
You can learn more about the Python API here: Python API
You’ve completed the verification and are now ready to start catching data quality issues with Soda
What’s Next?
Explore Profiling in the Discover tab to curate column selections for deeper analysis.
Set up Notification Rules (bell icon → Add Notification Rule) to push alerts to Slack, Jira, PagerDuty, etc.
Dive into Custom Monitors via
scan.ymlor the UI for even more tailored metrics.
You are not logged in to Soda and are viewing the default public documentation. Learn more about Documentation access & licensing.
If you do have a Soda license, make sure to log in to Soda Cloud in this same browser.
Last updated
Was this helpful?



