# Building Audiences

## Overview

You can build the list of customers and the additional customer data that you want by one of three methods:

1. Using a pre-built Daasity Segment
2. Using a report you have created in Looker
3. Entering a custom SQL query into the Daasity UI

In each method, Daasity will run the report or SQL query on your database in real-time to extract the most current customer list and associated data.  The platform then takes the returned data from that query, maps it to the appropriate fields in the target, and sends the data to the target.

{% hint style="info" %}
Almost all Targets will need a customer identifier to be a key field in the generated report. Often this is an email address, phone number, or the customer ID from that platform (e.g.: Shopify), so make sure your audience (segment) has a customer identifier.
{% endhint %}

## Building an Audience

Audiences are built within your targets.  To access your targets, navigate to the Targets page from the left-hand nav:&#x20;

<div align="left"><figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/e50jaeKTKNrD9VPaOuMT/image.png" alt=""><figcaption></figcaption></figure></div>

This will take you to the Targets page where you will be able to see all the targets you currently have setup and the volume of data that you have pushed into those targets as well as create a  new target:

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/bxIUJoyQHQHJsNlbBsPU/image.png" alt=""><figcaption></figcaption></figure>

Regardless of the target, there will be an audiences section in the target setup page where you will select how you want to build your audience:

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/uf3S3lfKPmtaFKw9S7p2/image.png" alt=""><figcaption></figcaption></figure>

Your choices will be:

1. Daasity Customer Segments — Use a pre-built Daasity Segment
2. Our Company Reports — Use a report you have created in Looker
3. Custom SQL — Enter a custom SQL query into the Daasity UI

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/i4mbm0Uyfqtj6ITAtxL3/image.png" alt=""><figcaption></figcaption></figure>

### Daasity Customer Segments

To use a pre-built Daasity segment just select the report you want to use:

{% hint style="warning" %}
Pre-built Daasity segments only work with merchants that use Looker as their visualization tool
{% endhint %}

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/TtzJyIwJ8Jp5kKbneHM9/image.png" alt=""><figcaption></figcaption></figure>

### Our Company Reports

This option allows you to use reports that you have built in Looker and are kept in the "Audiences > Company Reports" folder within Looker.

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/mLbnGJEOglOGOuuFAV9u/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/XxofsZ33vwXEVpYcsdyC/image.png" alt=""><figcaption></figcaption></figure>

### Custom SQL

This option allows you to write any custom SQL that will run on your data warehouse at the time the workflow is set to push the resulting segment into your marketing platform:

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/d8QcTQjz4S6S5rEjmfSh/image.png" alt=""><figcaption></figcaption></figure>
