Building Your First Campaign

This guide walks you through creating a complete calling campaign from scratch. By the end, you'll have a working campaign that calls contacts and plays a message.

What you'll build

A payment reminder campaign that:

  1. Calls customers with outstanding balances

  2. Plays a personalized message with their balance

  3. Collects a response (press 1 to confirm, press 2 for callback)

  4. Retries failed calls once after 30 minutes

Prerequisites

  • Gomobile account with API access

  • Access token (see Authentication)

  • At least one DID allocated to your account

  • Audio files for your messages (or use text descriptions for now)

Step 1: Create your contacts

First, add the people you'll be calling:

Save the contact ID from the response. Repeat for additional contacts.

For bulk import, use the upsert endpoint:

Step 2: Create an audience

Group your contacts into a targetable audience:

Save the audience ID.

Step 3: Add contacts to the audience

Link your contacts to the audience:

Step 4: Upload audio files

Upload the audio files you'll use in the flow:

Save all the audio IDs.

Step 5: Create the call flow

Now build the flow that defines what happens during each call:

Save the flow ID.

Step 6: Create the program

Configure the campaign with all the pieces:

Save the program ID.

Step 7: Launch the campaign

Start the execution:

Response:

Step 8: Monitor progress

Check how the campaign is doing:

Watch the counters:

Verification

Your campaign is working when:

  • Status shows running or completed

  • contactsCompleted increases over time

  • You can answer a test call and hear your audio

Troubleshooting

No calls going out?

  • Check that startAt is in the past or current

  • Verify you're not in a pause window

  • Confirm DIDs are valid

Calls fail immediately?

  • Check phone number formats

  • Verify DID is allocated to your account

Audio doesn't play?

  • Confirm audio IDs are correct

  • Check audio was processed successfully

What's next

Last updated