How to Add Contact Fields and an Agent Script to an Offer

Offers

Contact fields are the custom details you keep on an offer's calls and leads, such as a caller's interest or date of birth. An agent script is the page an agent works from while on a call: the words the agent says, with boxes where the agent fills in those contact fields. Both belong to one offer, and a superuser adds them.

Step 1: Add the Contact Fields

Open the offer's page. In Optional Settings, find Contact Fields and click New Contact Field. Fill in:

  • Display Name: the name people see, such as Interest.
  • Field Name: the token name the value is stored under, such as interest. A script and a webhook refer to the field by this name.
  • Field Type: the kind of value the field holds, such as text, a number, a date and time, or yes or no.
  • Description: an optional hint explaining what the field is for.

Click Next Step to save the field. Its Options then appear, where you can, for example, make the field Required Before Transfer. A saved String Field also has Acceptable Values, a list of the values the field accepts.

Add one field for each detail your agents collect.

Step 2: Write the Agent Script

In the sidebar, open Lead Automation -> Agents -> Agent Scripts, click New Agent Script and choose the Offer the script is for. When the offer's page shows a Lead Automation section, you can also click New Agent Script in its Agent Scripts list. Fill in:

  • Display Name: a name for the script.
  • Fields Type ID: an ID for the script, different from every other script on the offer, such as sales_script. The script cannot be saved without it, and a lead or a number picks this script by it.
  • Agent Script: the text the agent reads. Write a contact field's Field Name in square brackets, such as [interest], to put a box there for the agent to fill in, or in curly braces, such as {interest}, to show its value as plain text. A Formula Field in square brackets shows its value instead of a box, and a Hidden Field's box stays hidden.
  • Visible Contact Fields: the contact fields the Contact Fields Editor section on a call's page lists when the call has this script. The boxes in the script come from the Field Names written in its text.
  • Is Default?: on for the script a call gets when no other script is picked for it.
  • Active?: on, so agents are offered the script.

Save the script, then use Preview Script to see it.

Example: a script reads "Thanks for calling. Which are you most interested in today? [interest]". The agent reads the question aloud and types the caller's answer in the box, and the answer is saved on the call.

Where Agents See It

While an agent is on a call, the script shows in the Control Center, and on the call's page in its Agent Script section. What the agent types in its boxes is saved on the call. A value its field doesn't accept, such as a number outside the field's Min Value and Max Value, is refused, and nothing else sent with it is saved.

More Than One Script

An offer can have several scripts. A call gets one, chosen in this order:

  1. A script named for the call by its Fields Type ID: the number's, on a call to a number that names an Active? script, or else the lead's, when the lead names an Active? script. When that script's own Apply Script If Filters Match? is off, the call uses it without checking its filters. When it is on, the call uses it only if its filters match; if they don't, the call goes on to the next step.
  2. An Active? script whose Apply Script If Filters Match? is on and whose filters, set with Manage Filters, match the call. When several match, the call gets only one of them, so keep their filters apart.
  3. The offer's default script, if it has one.

A script with Apply Script If Filters Match? on and no filters matches every call, so turn it off on each script that calls should get only when it is named or is the default.

Related

  • "How to Use the Agent Control Center" covers what agents see while on a call.
  • "How to Create an Offer" describes the rest of the offer's page.
Contact TrackDrive

Questions?

We're here to help. Reach out and a Voice Marketing Cloud Specialist will get back to you.

Email support@trackdrive.com
Request A Demo

Request A Demo.

See how you can improve your marketing and the customer experience with the Voice Marketing Cloud.

Request a demo