HTML 和 JSX 支持 - Amazon Connect

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

HTML 和 JSX 支持

当您将输入参数传递给“显示视图”数据块时,您可以利用 HTML 或 JSX 来自定义视图资源的外观和布局。

举一个简单的例子,创建一个包含“显示视图”数据块的流,然后选择详细信息视图。在 Sections 字段中,使用下面的 JSON 来查看 HTML 或 JSX 表达式的处理过程。

HTML 示例

{ "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 示例

{ "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?" }