Customize the guide
The stack's views are customer-managed views. You edit them in the UI builder: standard components, such as the account's Account phone and Billing city fields, take a dynamic value, and the Customer information heading, the Recent cases rows and the Contacts rows are template string components, which you change by editing their expressions. Common changes, and where each is made:
| To | Change |
|---|---|
Rearrange the screen, or show a field the guide already reads but doesn't show, such as the account's owner or a recent case's owner ( |
The view only, in the UI builder or with the Connect assistant. See Build views with the UI builder and Use the Connect assistant in the UI builder. |
Show another field or record, including fields of your custom objects |
In your copy of the guide flow, add an External Tool block before the view's Show view block that calls |
Write a Task, a custom object or a custom field | Call the target's |
Add an operation the Salesforce target doesn't have |
Add an OpenAPI or AWS Lambda target that describes it; see Connect another system with an API. |
Add another system, such as orders |
Add a target for it to the same gateway, and call it from the guide flow. |
Use other case statuses |
Your org's Case Status picklist. The guide reads the API names of the first 10 statuses, in sort order, and Update case offers those 10. |
Show a different guide per queue or customer type |
Your inbound flow: branch with a Check contact attributes block before the Set event flow block. |
The guide's tool calls work within these limits:
Each call is synchronous, with an 8-second limit.
A result over 32 KB takes the block's error branch.
Each call replaces the previous call's result, so copy any value you need later into a contact attribute.
For time limits, asynchronous calls and retries, see Flow block in Connect Customer: External Tool. For writes you add, use an operation that is safe to repeat, such as an upsert by external ID.
The stack creates the guide's views and flows. An update that changes one of the stack's views or flows writes it from the template, which discards changes made to it in the Connect Customer console, in the UI builder or with the Connect assistant. Any 1.x update can change any of them, so make your changes on copies under your own names.
To customize the guide on a copy
-
Copy each view you change. To change the account view, copy both
andstack-name-view-mainand make the matching change in both, because the guide shows the second one after Create case, after New customer creates a first case, and after a Save in Edit customer or Edit contact. The batched view reads the same data at different positions; the table of the batched view's paths shows each one. Expand The view copy script, which follows these steps, copy it, and paste it at the prompt in your instance's Region. It asks for the instance's Region, the instance alias, the stack's view, such asstack-name-view-main-batchedconnect-sf-real-time-view-main, and a name for the copy, then creates the copy as a published view and prints its ARN. -
Copy the guide flow, the stack's flow whose name ends in
-account-360-guide: create a flow of the same type under your own name, and copy every block of the stack's guide flow into it; see Copy and paste flows in Connect Customer. -
In your copy of the guide flow, open each Show view block that shows a view you copied, choose your copy of the view, and publish the flow.
-
In your inbound flow, and in any flow that hands contacts to agents after the stack's AI self-service flow, set the Default flow for Agent UI event to your copy of the guide flow, and publish it. The stack's inbound flow and AI self-service flow keep setting it to the stack's guide flow, so contacts routed through them show the stack's guide.
-
Make your changes to your copies, in the UI builder or with the Connect assistant, as the following procedures describe, and test them with a test chat or a test call.
( umask 077; D=$(mktemp -d); trap 'rm -rf "$D"' EXIT R=${AWS_REGION:-us-east-1} printf 'Region of your Connect Customer instance [%s]: ' "$R"; read -r REGION; REGION=${REGION:-$R} printf 'Instance alias: '; read -r ALIAS ID=$(aws connect list-instances --region "$REGION" --query "InstanceSummaryList[?InstanceAlias=='$ALIAS'].Id" --output text | grep -m 1 .) [ -n "$ID" ] || { echo "No instance named $ALIAS in $REGION; nothing was created."; exit 1; } printf "The stack's view to copy [connect-sf-real-time-view-main]: "; read -r VIEW; VIEW=${VIEW:-connect-sf-real-time-view-main} printf 'Name for your copy [%s-copy]: ' "$VIEW"; read -r NAME; NAME=${NAME:-$VIEW-copy} VID=$(aws connect list-views --region "$REGION" --instance-id "$ID" --type CUSTOMER_MANAGED \ --query "ViewsSummaryList[?Name=='$VIEW'].Id" --output text | grep -m 1 .) [ -n "$VID" ] || { echo "No view named $VIEW in $ALIAS; nothing was created."; exit 1; } aws connect describe-view --region "$REGION" --instance-id "$ID" --view-id "$VID" \ --query 'View.Content.{Template: Template, Actions: Actions}' --output json > "$D/content.json" || exit 1 aws connect create-view --region "$REGION" --instance-id "$ID" --name "$NAME" --status PUBLISHED \ --content "file://$D/content.json" --query View.Arn --output text )
Your copies still call the stack's flow modules by
their v1 aliases, so a stack update can change what your copies do, and
deleting the stack breaks them. To keep behavior of your own, call modules you build,
as in Extend the guide with flow modules.
Each view reads the data that the guide flow's Show view block
passes to it, under short keys. A dynamic field in the UI builder refers to a value by its path under the key. In the stack's account view, Customer information is a loop over $.R.compositeResponse[0].body.records, and each field inside it uses a path relative to the record, such as /.Phone. The following table lists the keys of the main view, .stack-name-view-main
The guide shows the same account view from a second view,
, after Create
case, after New customer creates a first case, and after a
Save in Edit customer or Edit contact. It has the same keys, but its stack-name-view-main-batchedR
is the Composite response of the write, so the same data sits at different positions:
| Data | Main view (view-main) |
Batched view (view-main-batched) |
|---|---|---|
The account, its cases and contacts |
|
|
The named case |
|
|
The org's case statuses |
| None |
The account's case counts |
|
|
The write and its read-back | None |
|
A dynamic field copied unchanged from the main view shows the wrong data.
The main view's keys:
| Key | What it holds | Example path |
|---|---|---|
|
The Read the account module's result, in |
|
|
Fixed values that the stack's guide sets on the account view: |
|
|
The number of the case the agent just created, or
|
|
|
The search note to show ( |
|
|
Where the account came from: |
|
|
How the account was found, for the banner: |
|
|
The status icons, as images |
|
The case view's keys:
| Key | What it holds | Example path |
|---|---|---|
|
The Read a case module's result, in |
|
|
Whether the read was trimmed ( |
|
|
The result of the last Save: |
|
|
|
|
|
Why this case is shown ( |
|
|
The org's case statuses for the status list,
|
|
The find views, Customer not found and its version with New customer, read these keys:
| Key | What it holds | Example path |
|---|---|---|
|
The note to show ( |
|
|
The contact's channel, from the |
|
|
The caller's number, from the |
|
|
On the find view with New customer, after a failed create: the values the agent entered in the form, which fill it again |
|
|
On the same view: the Create a customer module's result, with Salesforce's error |
|
The possible matches view reads these keys:
| Key | What it holds | Example path |
|---|---|---|
|
The matches, in |
|
|
The value the agent searched for |
|
|
|
|
The All cases view reads these keys:
| Key | What it holds | Example path |
|---|---|---|
|
The List cases module's result, in |
|
|
The number of cases before this page, from the |
|
|
The status icons, as images |
|
The edit views are Edit customer, Edit contact and the kept view, which shows a refused save again with the values the agent entered. They read these keys:
| Key | What it holds | Example path |
|---|---|---|
|
In Edit customer and Edit contact: the Read the account module's result, as in the main view. Edit customer's boxes read the account with paths relative to the record, such as |
|
|
In Edit contact: which Contacts row the screen edits, |
|
|
In the kept view: the Update a record module's result, with its |
|
|
In the kept view: the values the agent entered, |
|
Edit a view in the UI builder
-
Log in to the Connect Customer admin website with an account that has the Channels and flows - Views permission.
-
Choose UI Management, Views, and open your copy of the view, for example
connect-sf-real-time-view-main-copy. -
Change the layout on the canvas. To show a value from your system, select a component, and on the Properties tab choose the dynamic icon (the lightning bolt) to fill it at runtime. See Build views with the UI builder.
-
Choose Save, and then Publish. Only published versions appear in the Show view block. The stack's guide flow names each view without a version, so it shows the latest published version. If your copy of the guide flow names a view version, choose the new version in its Show view block and publish the flow.
-
Check the view with a test chat or a test call; see Test the guide with the inbound flow.
Edit a view with the Connect assistant
You need the Channels and flows - Views and AI agent designer - AI agents permissions, and the Connect assistant enabled on your instance. See Use the Connect assistant in the UI builder.
-
Open the view in the UI builder, as in the previous procedure.
-
Choose Connect Assistant in the toolbar.
-
Describe the change, for example
Show each open case's priority on its card. -
Review the change on the canvas, and check that each dynamic field refers to a key that the guide flow's Show view block passes, from the data key tables in Customize the guide.
-
Choose Save, and then Publish, and test the view.