Skip to main content

Connect Fin Voice to Amazon Connect with SIP

Connect Amazon Connect to Fin Voice with SIP using an external voice transfer connector, a Lambda function, and your contact flow.

Written by Dawn P

Use this article to connect Amazon Connect to Fin Voice with SIP (Session Initiation Protocol), create an external voice transfer connector, fetch Fin Voice's call data with an AWS (Amazon Web Services) Lambda function, and update your contact flow. It's for Amazon Connect admins who can edit routing and contact flows, and the teammates who add lines in Fin Voice.


How does Fin Voice connect to Amazon Connect with SIP?

Connecting Amazon Connect to Fin Voice with SIP means your contact flow transfers calls straight to Fin Voice through an external voice transfer connector. When Fin Voice finishes, your contact flow resumes and can route the caller using Fin Voice's result.

AWS has to enable SIP connections for your account before you can connect, and doesn't approve every request. Set up call forwarding with Amazon Connect first so you can start using Fin Voice while you wait. See Integrating Fin Voice with Amazon Connect using call forwarding. For how SIP works with Fin Voice in general, see Connect Fin Voice to your phone system with SIP.


What do I need before connecting Amazon Connect to Fin Voice with SIP?

Before you connect Amazon Connect to Fin Voice with SIP, make sure you have:

  • An Amazon Connect instance and permission to edit routing and contact flows.

  • External voice transfer enabled for your AWS account. New accounts start with a quota of 0 connectors, which blocks all calls. Ask your AWS account team to raise it, which can take a few weeks. AWS may charge for SIP connectivity and external voice transfer usage, so ask your AWS account team what applies to your account.

  • Permission to create AWS Lambda functions.

  • An access token from your app in the Intercom Developer Hub, with the read_conversations scope.


How to connect Amazon Connect to Fin Voice with SIP

Step 1: Add an Amazon Connect SIP line in Fin Voice

To add an Amazon Connect SIP line in Fin Voice:

  1. Go to Fin AI Agent > Deploy > Voice and click New line.

  2. Under Already have a phone system, choose Send calls straight to Fin (SIP).

    Add line panel in Fin AI Agent > Deploy > Voice. Under Already have a phone system, the option Send calls straight to Fin (SIP) is highlighted, with the description that it connects your phone system (Five9, NICE CXone, Amazon Connect and more) and sends calls straight to Fin, and is marked A few weeks.
  3. Give the line a name and choose Amazon Connect as the provider.

    Line details panel for a new SIP line. The Give this line a name field is empty, and under SIP provider, Amazon Connect is selected from the choices Amazon Connect, Dialpad, Five9, NICE CXone, and Other.
  4. Check the IP addresses tab. Under Allowed IP addresses, Amazon Connect's IP (Internet Protocol) address ranges are already filled in, so you don't need to add any. Fin Voice routes Amazon Connect calls using User-to-User Information (UUI), and encrypts them with TLS (Transport Layer Security) and SRTP (Secure Real-time Transport Protocol).

    The Credentials tab has SIP username and SIP password fields. Leave Phone number, SIP extension, or identifier blank and Fin Voice generates one for you.

  5. Click Continue.

  6. Click the pencil icon on the line's card to open Line details, and copy your SIP domain and the Phone number, SIP extension, or identifier.

    Line details panel for an Amazon Connect line, open over the line's settings page. It shows the line name, the allowed IP addresses, the SIP domain, and the Phone number, SIP extension, or identifier, each with a copy button.
  7. Optionally, in Line details, click Export configuration and add your instance ARN (Amazon Resource Name), AWS account, and region to download a setup file for your AWS team.

Step 2: Create an external voice transfer connector in Amazon Connect

To create the connector that sends calls to Fin Voice:

  1. In your Amazon Connect instance, go to Routing > External voice transfer and click Create connector.

  2. Give it a name, for example Fin-Voice-SIP-Connector.

  3. Set Connector destination type to AudioCodes Mediant SBC.

  4. Choose any Voice system type.

  5. Turn on SIP message logs and Media metric logs, so you can troubleshoot in CloudWatch.

  6. Add an outbound route with your SIP domain as the host.

  7. Click Create.

Step 3: Create a Lambda function to fetch Fin Voice's call data

To get Fin Voice's call data into your contact flow, create an AWS Lambda function that calls Collect Fin Voice call by external ID with the Amazon Connect contact ID. The function returns Fin Voice's status, summary, transcript, and intent to your contact flow.

Store your Intercom access token in an environment variable rather than in the code.

Step 4: Update your Amazon Connect contact flow

To send calls to Fin Voice and use its result in your contact flow:

  1. Add the block that transfers calls to Fin Voice where you want calls to go. Send the call to your SIP domain through the connector you created.

  2. Set User to User Information (UUI) to the line's routing identifier.

  3. Set Resume flow after disconnect to Yes. This is required, so your flow continues after Fin Voice.

  4. Set a timeout, for example 30 seconds.

  5. On the transfer block's Success branch, add an Invoke AWS Lambda function block that calls your Lambda function, with a timeout of about 8 seconds.

  6. Use the status Fin Voice returns to decide what happens next, for example ending the call if Fin Voice resolved it, or queuing it for a teammate.

  7. Optionally, show Fin Voice's summary to teammates with a View that displays the conversation summary when the call is connected.

In Fin Voice, set the line's handover to End the call so Fin Voice ends its side of the call and your flow resumes. To do this, go to Fin AI Agent > Deploy > Voice, open the line, go to If Fin can't resolve the conversation, and set What should Fin do if it can't resolve the conversation? to End the call on both the Inside office hours and Outside office hours tabs.

Step 5: Test and go live with Amazon Connect and Fin Voice

To test the Amazon Connect connection and go live:

  1. Place a test call through your contact flow. If anything fails, check the connector's logs in CloudWatch.

  2. Confirm the call reaches Fin Voice, the flow resumes when Fin Voice finishes, and the Lambda function returns call data.

  3. When you're ready for customers to reach Fin Voice, route customer calls to the line and increase the rollout gradually, starting outside office hours or at 5–10% of calls.

For more on rollout percentages, see Test and go live in Connect Fin Voice to your phone system with SIP. To try Fin Voice in the preview first, see Test Fin Voice before going live.

Note: Calls that reach Fin Voice, including test calls on a real line, are billed as Fin Voice outcomes at $1.99 per outcome. Your first 14 days of Fin Voice outcomes are free, and calls in the preview aren't billed. Your provider's call charges are separate. For details, see Fin AI Agent outcomes.


Related articles about Fin Voice and SIP


💡Tip

Need more help? Get support from our Community Forum
Find answers and get help from Intercom Support and Community Experts


Did this answer your question?