Skip to content

Get Quick Connect Id or ARN and pass it as an attribute.

0

Hi,
I'm creating a cross-platform transfer solution and we are using quick connect to define where the calls need to route to. The idea is that the Agent selects quick connect (queue) -> transfer to queue is triggered On the transfer queue flow, I want to pull the quick connect name or ARN that the agent selected to look up the number I need to transfer the call externally. How can I get the name or ARN of the quick connect? I need to invoke a Lambda but, what code do I need to do to look for that data? Thanks in advance.

asked 2 years ago442 views

1 Answer
0

To achieve your cross-platform transfer solution using Amazon Connect's quick connect feature, you can follow these steps:

  1. When the agent selects a quick connect (queue), and the transfer to queue is triggered, you can pass the QuickConnectId or QuickConnectARN as an attribute in the contact flow.

  2. In your transfer queue flow, you can access this attribute to get the quick connect information.

  3. To get more details about the quick connect, including its name or ARN, you can use the DescribeQuickConnect API operation in your Lambda function.

Here's a general outline of what you need to do in your Lambda function:

  1. Use the AWS SDK for your preferred programming language.
  2. Call the DescribeQuickConnect API, passing the InstanceId and QuickConnectId.
  3. The API will return detailed information about the quick connect, including its name, ARN, and configuration.

For example, if you're using Node.js, your Lambda function might look something like this:

const AWS = require('aws-sdk');
const connect = new AWS.Connect();

exports.handler = async (event) => {
const params = {
InstanceId: 'your-instance-id', // Replace with your Connect instance ID
QuickConnectId: event.Details.ContactData.Attributes.QuickConnectId // Assuming you passed this as an attribute
};

try {
const quickConnectDetails = await connect.describeQuickConnect(params).promise();
// Now you can use quickConnectDetails.QuickConnectARN or quickConnectDetails.Name
// to look up the number you need to transfer the call externally
} catch (error) {
console.error('Error describing quick connect:', error);
}
};

Remember to grant your Lambda function the necessary IAM permissions to call the DescribeQuickConnect API.

By using this approach, you can retrieve the quick connect details, including its name or ARN, which you can then use to look up the external number for transferring the call.
Sources
DescribeQuickConnect - Amazon Connect
QuickConnect - Amazon Connect

answered 2 years ago

  • How can I get the QuickConnectId when the agent selects the quick connect?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.