Customize views for the Amazon Connect agent workspace by using HTML and JSX
You can customize the look and feel of the layouts of View resources. You do this by leveraging HTML or JSX when you pass in input parameters to the Show view block.
Complete the following steps for a simple example of how you can leverage HTML or JSX with a Show view block.
-
Create a flow with a Show view block.
-
Open the Properties page of Show view block.
-
Under View, select Detail from the dropdown list.
-
In the Sections section, choose Set JSON.
-
Copy and paste the following JSON code. This code shows how HTML or JSX expressions get processed.
HTML example
{ "TemplateString": "<TextContent>Steps:<ol><li>Customer provides incident information</li><li>Customer provides receipts and agrees with amount</li> <li>Customer receives reimbursement</li></ol></TextContent>" }
JSX example
{ "TemplateString": "Please provide an introduction to the customers. Ask them how their day is going Things to say: Hello, how are you today? My name is Bob, who am I speaking to?" }