Skip to content

A collection of dependency free snippets for working with Amazon Connect, in multiple programming languages.

License

Notifications You must be signed in to change notification settings

qingliaowu/amazon-connect-snippets

 
 

Repository files navigation

Amazon Connect Snippets

This repository is a collection of code snippets for working with different parts of Amazon Connect. The snippets are organized by language. There's an additional collection of projects that come with associated CloudFormation templates and Contact Flows in the projects/ directory.

We currently have snippets in:

Feel free to add more languages. Please follow the requirements in each subdirectory README.

Snippets

Name Description Links
Outbound Dial Uses the StartOutboundVoiceContact API to call a number. Java DotNet Go
Holiday Check Can be used to check for holidays in a contact flow Python
Sync Instance User Data Can be used to sync basic user information from one instance to another instance Python
Lex Default Intent Function pass the utterance used in Lex on default intent to a contact attribute in connect Python
Get Available Agents Uses the GetCurrentMetricData API to get all available agents in a queue Go
Add Connect User Add a new user to Amazon Connect PowerShell
Multi Account / Multi Instance Metric Collection Collect metrics from multiple accounts Python
Restrict Deskphone in CCP Enforce deskphone settings with javascript in the CCP Javascript
Remote Control Center Centrally manage prompts and routing configurations in DynamoDB Python
Contact Flow Helper A single AWS Lambda function which provides a set of basic math and text tools to help manipulate data in contact flows Python

Projects

Name Description Links
Context Routing Uses CTR processing, Lambda, and DynamoDB to track IVR task completion and return callers to incomplete tasks CloudFormation
SCV-CrossAccountSMS Uses Lambda and cross account permissions to allow Salesforce Service Cloud Voice provisioned Amazon Connect instances to utilize SNS to send SMS messages. CloudFormation

Contributions

Make sure the .gitignore per language is applied. Make sure your snippet has no external dependencies. Make sure your snippet is self contained.

Values for variables

  • InstanceId : c2e9dc6f-3f69-40e2-b0ec-f78d0c62bee6
  • ContactFlowId: ae4e2be3-5541-4c57-9738-217052e61eb3
  • DestinationPhoneNumber : +12065550101
  • SourcePhoneNumber : +12065550100

About

A collection of dependency free snippets for working with Amazon Connect, in multiple programming languages.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.7%
  • Go 9.8%
  • PowerShell 9.4%
  • JavaScript 4.5%
  • Java 2.7%
  • C# 1.9%