# Campaign Payload

{% hint style="info" %}
Template Generator is a DIY tool within the Truecaller for Business console that allows marketers to craft their marketing templates and generate a JSON payload for seamless integration with your external systems.&#x20;
{% endhint %}

Navigate to the "Verified Campaigns" section within your business console and click on **"Template Generator"** option&#x20;

**Step 1: Campaign identifiers and use case**

* **Campaign Name:** Enter the name of your campaign.
* **Campaign ID:** Enter your campaign's unique identifier, this could be the same external campaign reference or campaign ID that you use in your external system&#x20;
* **Campaign Type:** Select the relevant type (Lifecycle or Offer).

**Step 2: Choose your Display Unit**

* Select the display unit(s) where your campaign will run:
  * **Caller ID:** The incoming pop-up shown when a call is incoming on a user device.
  * **Post Call Pop-up (Universal):** The pop-up displayed after a call is answered., missed or rejected.
  * **Missed Call Pop-up :** The pop-up shown after a missed call.
  * **Sticky Message** **ID**: The UI shown for transactional message notifications
  * Business Profile : The brand page on the Truecaller app/&#x20;
* Each display unit may have different template style options available.

**Step 3: Configure Campaign template**

* Dynamic Fields : For each selected Display Unit and Template Style the parameters of customization are different.&#x20;
  * **Custom Fields:** Enter the campaign message content (title, subtitle, CTA, deeplink, etc.) based on the chosen display unit and template style chosen.
* **Static Fields : These are stored and saved in our backend mapped to your Campaign ID**
  * **Text Color:** Choose a text color that works best with your brand image (Black or White).
  * **Template Theme:** Select a brand color for the template theme.
  * **Brand Image:** Host your marketing assets on Truecaller Assets page (**Note** : Adhere to recommended dimensions and image storage requirements).
* **Save and Generate JSON:** Click this button when you're satisfied with your template.

**Step 4: JSON Generator**

* **JSON Payload:** A formatted JSON payload, based on your template and selections, will be displayed. This payload adheres to the required format for Truecaller's Verified Campaigns Webhook endpoint.
* **Copy:** Click the "Copy" button to copy the JSON payload to your clipboard.

**Important Notes:**

{% hint style="info" %}

* **Template Styles:** Each display unit may offer different template styles (Plain Text with CTA, Image with CTA, Personalized Content with CTA - image on left/right). Experiment to find the best fit for your campaign.
* **Image Dimensions:** Be sure to follow Truecaller's recommended image dimensions for optimal display and outcomes.&#x20;
* **Third-Party Integration:** Refer to your external system's documentation to understand how to integrate the generated JSON payload correctly.&#x20;
  {% endhint %}

<figure><img src="https://524139107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnvD14ounFJ30uTgr4F8f%2Fuploads%2FzJkM423Cd30KnpZUE1EZ%2FScreenshot%202024-08-12%20at%204.49.17%E2%80%AFPM.png?alt=media&#x26;token=062f1bcc-895a-42a7-b9cd-ff75c56144f1" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/M4u61AnGqwo?si=EwYuWEUttgwlDHTh>" %}
