View a markdown version of this page

Reference: the sample guide's screens - Amazon Connect Customer

Reference: the sample guide's screens

When the sample guide calls Salesforce
Agent action or event What the guide reads or writes

The contact arrives

The Find the record module, from accountId, caseId and contactEmail, in that order

A search in Search accounts and cases or Search for the caller's number

Salesforce search, or an exact query

Opening Search accounts and cases, Create case or Add a contact

Nothing; the cards are collapsed

Refresh on Customer information

The Read the account module: one Salesforce Composite request for the account with up to six of its other cases, open cases first and then the newest, its five newest contacts, the named case, the org's case statuses and the account's case counts. The guide redraws the account view from that read

Edit

Nothing; the screen opens from the account view's last read. After Create case, New customer with a first case, or a Save, Edit first reads the account again

View case

The Read a case module

See all cases, Previous and Next

The List the account's cases module, ten cases a page. It pages through the first 2,010 cases: Salesforce's limit on skipping query rows is 2,000, plus one page; see OFFSET

Every save

The form's write module, as the integration user. After Update case, the guide reads the case again and shows the result line

Returning from a case or from All cases, or adding a contact

The guide reads the account again

The account view left for 10 minutes with no action

The guide reads the account again and redraws the view, up to six times, then redraws it without reading

The case view opens before the account view has been read, for example on a contact that arrives with a case

The guide reads the org's first 10 case statuses by sort order, for the status list. Otherwise they come from Read the account

The contact ends

The guide ends

Boxes of the sample guide's forms
Form Boxes and rules (* marks a required box)

Search accounts and cases

Name, phone, email or case subject, the default: 3 to 80 characters that Salesforce search looks for in all fields of accounts, contacts and cases; it returns up to five of each. Account number and Contact email: an exact match that returns up to five accounts. Case number: an exact match that opens the case

Search for the caller's number

Runs the Name, phone, email or case subject search for the number in customerPhone. A +1 number is searched, and shown, as its 10 digits, and any other number as the call gave it

Edit customer

Account name *, up to 255 characters; Account phone and Billing city, up to 40

Edit contact

First name and Phone, up to 40 characters; Last name * and Email, up to 80. Email takes letters, digits and . _ + ' - before the @, and letters, digits, dots and hyphens after it, or nothing. The box marks any other address and won't save it, so a contact whose stored email is outside these rules can be saved only after the agent corrects it

Both edit screens

No box can hold a {. The screen says Change the details, then choose Save. A box left empty clears that detail. Each optional box's hint starts Optional.

Create case

Subject *, up to 255 characters; What the customer asked for, the case's Description, up to 4,000; Priority, High, Medium or Low; the name, email, phone and company the customer gave, saved on the case and not on the account; a comment. The case gets the Origin Phone on a voice contact and Web on a chat or any other channel, and the Salesforce Contact in the contact attribute matchedContactId: the one the guide matched, the one the agent last added with Add a contact, or the one New customer created. With none, the case has no Contact

Update case

The status list shows each status's API value, not its label; the guide refuses a status that isn't one of the org's. Priority is High, Medium or Low. If the agent empties Subject, the case keeps its subject. A box left empty changes nothing, and the guide never saves the word "null"

New customer

The account name *, the first name * and the last name *; an email address, a phone number or both. The phone is saved on the account and the contact, and must be a 10-digit North American number, digits only, with no country code and a first digit from 2 to 9, such as 2065550123. A first case with no description takes the subject as its description. The duplicate check looks for a Salesforce Contact whose Email is exactly that address, and for an account or contact that a Salesforce phone search finds for that number

Add a contact

First name * and last name *; optionally an email address, which must contain an @, and a phone number. The phone box asks for the 10-digit number with no country code, but the guide saves the phone as typed

Wrap up this contact

Disposition code * and optional Notes. The form waits 10 minutes and shows again up to twice

Lines the sample guide shows
Where Text

Customer not found and Unknown caller

The warning No record matches this contact. and the line Nothing was found, so every field below is empty. Take the call and work from what the customer tells you.; empty Customer information and Recent cases cards that say Nothing on file for this caller.. When the Find the record module, or your own module in FindRecordModuleArn, returns Error or doesn't finish, the screen is titled We couldn't look up this contact's record

Banner on the account view after a search

Now showing account-name, found by search. when one record matched; Now showing account-name, picked from n matches. after an account number or contact email search; Now showing account-name, picked from the search results. after a Name, phone, email or case subject search; Now showing account-name, found by case case-number. after Back to the account from a case that a case-number search found

How the case view says the case was found

From this contact, Found by the case number, Found by the contact's email address, Found by the caller's phone number, Found for this contact, Found from the bot conversation or Found by search

Rows of Which record is this?

After an account number search, a link with the account's name and number. After a contact email search, the same link with the account's first Salesforce Contact with that email, such as Example Corp · Account number LDIDOC1001 · Contact Jordan Lee. After a free-text search, one row for each account, Salesforce Contact and case: name · Account · Account number number, name · Contact · Account account-name · email, or case-number: subject · Case · Account account-name. A row with no account shows (no account to open) and can't be chosen. Two to five accounts from the contact's own lookup show These accounts match this contact. Pick the record to open it.

Customer information's caller row

Caller: with the Contact's name, email and phone, or No email and No phone when they're empty

The named case's card

The case's number and subject, its status, Created date · Priority: priority, From this contact or Found by search, and View case

Recent cases

The guide reads six cases, so that the heading shows (5+) when there are more than five, and otherwise the number listed, such as (3). When the account has more cases than the card lists, the card ends with Showing the 5 most recent of 12., Showing this case and the 5 most recent of 12. with the named case, or Showing the 5 most recent. when the guide can't read the total, and See all cases. Each row shows the number and subject, ending in an ellipsis when the subject is long, the status, and Created date · Priority: High, with the priority when the case has one; expanding it shows Subject, Origin, Type, Reason, Created and Last modified

All cases for account-name

A line such as Cases 11 to 20 of 37, open cases first.. Back to the account from a case opened there returns to the account view

The case view's lists

Comments and Emails show the newest 3, and Notes and attachments the newest 5. The heading shows (3+) or (5+), and the list ends with Showing the newest 3. or Showing the newest 5., when the case has more. A comment shows its author, date, Public or Internal, and text; an email its subject, Received or Sent, sender and date; a file its title, type, size in bytes, who added it and when, and Open, which opens the file in a new tab. Case details shows Type, Reason, Origin, Parent case, Last modified and Closed date, each only when the case has a value. Customer information shows Account phone, Billing city, Account number, Type, Account created and a Case contact: line

After a save

Customer details saved. or Contact saved. after an edit; Contact added. after Add a contact; a result line such as Saved. The case is now Working. after Update case

The case open in the guide is kept on the contacts. The guide's own contact keeps the last case the agent opened in caseId. On the customer's contact, the guide sets caseId to - (no case) when the agent leaves the case view in one of these ways:

  • choosing Back to the account;

  • leaving the case view open for 10 minutes without choosing anything;

  • choosing Refresh on The customer's details could not be loaded.;

  • opening another account.

A transferred contact, or the guide after the agent reloads the agent workspace, opens the case that was open. On a warm transfer, both agents' guides share the customer's contact's caseId. The guide saves the chosen account's ID in accountId on both the guide's own contact and the customer's contact.