Skip to content

Commit 11945af

Browse files
authored
Merge pull request #620 from danbee-park/master
Update comments for step-by-step guides
2 parents 7e54769 + 5c48c18 commit 11945af

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Documentation.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run `npm run release` to generate new release files. Full instructions for build
1212
In version 1.x, we also support `make` for legacy builds. This option was removed in version 2.x.
1313

1414
# Important Announcements
15-
1. December 2022 - In addition to the CCP, customers can now embed the Step-by-step guides application using the connect.agentApp. See the [updated documentation](https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#initialization-for-ccp-customer-profiles-and-wisdom) for details on usage.
15+
1. December 2022 - In addition to the CCP, customers can now embed the Step-by-step guides application using the connect.agentApp. See the [updated documentation](https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#initialization-for-ccp-customer-profiles-wisdom-and-step-by-step-guides) for details on usage.
1616
* ### About Amazon Connect Step-by-step guides
1717
+ With Amazon Connect you can now create guides that walk agents through tailored views that focus on what must be seen or done by the agent at a given moment during an interaction. You can design workflows for various types of customer interactions and present agents with different step-by-step guides based on context, such as call queue, customer information, and interactive voice response (IVR). This feature is available in the Connect agent workspace as well as an embeddable application that can be embedded into another website via the Streams API. For more information, visit the AWS website: https://aws.amazon.com/connect/agent-workspace/
1818
1. December 2022 - 2.4.2
@@ -1814,19 +1814,22 @@ To get latest streams file and allowlist required urls follow [these instruction
18141814
{ style: "width:400px; height:600px;" }
18151815
);
18161816
/**
1817-
* Stargate will not load any view without a contact flow Id which includes
1818-
* showView block. You can extract the ongoing contactflow with the contact attribute, DefaultFlowForAgentUI.
1817+
*
1818+
* Step-by-step guides will not load any view without a contact flow Id.
1819+
* You can get the contact flow ID from the contact attribute, DefaultFlowForAgentUI (see [here](https://docs.aws.amazon.com/connect/latest/adminguide/how-to-invoke-a-flow-sg.html) for more details on this particular attribute).
1820+
* If you want to use information on the current connected contact (voice, chat, or task) to provide context to the step-by-step guide flow, you should add the parameter, currentContactId, at the url.
18191821
* For more information, visit the AWS website: https://aws.amazon.com/connect/agent-workspace/
18201822
*
18211823
**/
18221824
connect.contact((contact)=>{
18231825
contact.onConnected((contact)=>{
1826+
const currentContactId = contact.contactId;
18241827
const contactAttributes = contact.getAttributes();
18251828
if(contactAttributes["DefaultFlowForAgentUI"]) {
18261829
const contactflowId = contactAttributes["DefaultFlowForAgentUI"].value;
18271830
const stargateIframe = document.querySelector('#stargate-container > iframe');
18281831

1829-
stargateIframe.setAttribute('src', `${connectUrl}/stargate/app?contactFlowId=${contactflowId}`);
1832+
stargateIframe.setAttribute('src', `${connectUrl}/stargate/app?contactFlowId=${contactflowId}&currentContactId=${currentContactId}`);
18301833
}
18311834
});
18321835
})

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Run `npm run release` to generate new release files. Full instructions for build
1818
In version 1.x, we also support `make` for legacy builds. This option was removed in version 2.x.
1919

2020
# Important Announcements
21-
1. December 2022 - In addition to the CCP, customers can now embed the Step-by-step guides application using the connect.agentApp. See the [updated documentation](https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#initialization-for-ccp-customer-profiles-and-wisdom) for details on usage.
21+
1. December 2022 - In addition to the CCP, customers can now embed the Step-by-step guides application using the connect.agentApp. See the [updated documentation](https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#initialization-for-ccp-customer-profiles-wisdom-and-step-by-step-guides) for details on usage.
2222
* ### About Amazon Connect Step-by-step guides
2323
+ With Amazon Connect you can now create guides that walk agents through tailored views that focus on what must be seen or done by the agent at a given moment during an interaction. You can design workflows for various types of customer interactions and present agents with different step-by-step guides based on context, such as call queue, customer information, and interactive voice response (IVR). This feature is available in the Connect agent workspace as well as an embeddable application that can be embedded into another website via the Streams API. For more information, visit the AWS website: https://aws.amazon.com/connect/agent-workspace/
2424
1. December 2022 - 2.4.2

0 commit comments

Comments
 (0)