{"id":38604855,"url":"https://github.com/amazon-connect/amazon-connect-snippets","last_synced_at":"2026-01-17T08:37:05.530Z","repository":{"id":38851057,"uuid":"243334432","full_name":"amazon-connect/amazon-connect-snippets","owner":"amazon-connect","description":"A collection of dependency free snippets for working with Amazon Connect, in multiple programming languages.","archived":false,"fork":false,"pushed_at":"2023-08-07T20:43:38.000Z","size":64746,"stargazers_count":115,"open_issues_count":12,"forks_count":68,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-05-06T16:21:57.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://aws.amazon.com/connect/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amazon-connect.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-26T18:23:19.000Z","updated_at":"2024-03-30T03:46:27.000Z","dependencies_parsed_at":"2023-02-14T10:30:37.127Z","dependency_job_id":null,"html_url":"https://github.com/amazon-connect/amazon-connect-snippets","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/amazon-connect/amazon-connect-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-connect%2Famazon-connect-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-connect%2Famazon-connect-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-connect%2Famazon-connect-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-connect%2Famazon-connect-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazon-connect","download_url":"https://codeload.github.com/amazon-connect/amazon-connect-snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-connect%2Famazon-connect-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T08:37:05.411Z","updated_at":"2026-01-17T08:37:05.507Z","avatar_url":"https://github.com/amazon-connect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon Connect Snippets\n\nThis 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 directory called `tools` and a collection of projects that come with associated CloudFormation templates and Contact Flows in the `projects/` directory. \n\nWe currently have snippets in:\n\n* Python under [python/](python)\n* Java under [java/](java)\n* DotNet (C#) under [dotnet/](dotnet)\n* Javascript under [javascript/](javascript)\n* Go under [go/](go)\n* PowerShell [powershell/](powershell)\n* Tools [tools/](tools)\n\nFeel free to add more languages. Please follow the requirements in each subdirectory README.\n\n## Snippets\n\n| Name                                             | Description                                                                                                                                                                                            | Links                                                                                            |\n|--------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| Outbound Dial                                    | Uses the [StartOutboundVoiceContact](https://docs.aws.amazon.com/connect/latest/APIReference/API_StartOutboundVoiceContact.html) API to call a number.                                                 | [Java](java/OutboundExample) [DotNet](dotnet/OutboundExample) [Go](go/StartOutboundVoiceContact) |\n| Holiday Check                                    | Can be used to check for holidays in a contact flow                                                                                                                                                    | [Python](python/holidaycheck)                                                                    |\n| Sync Instance User Data                          | Can be used to sync basic user information from one instance to another instance                                                                                                                       | [Python](python/syncinstances)                                                                   |\n| Lex Default Intent Function                      | pass the utterance used in Lex on default intent to a contact attribute in connect                                                                                                                     | [Python](python/LexDefaultIntentUtterance)                                                       |\n| Get Available Agents                             | Uses the [GetCurrentMetricData](https://docs.aws.amazon.com/connect/latest/APIReference/API_GetCurrentMetricData.html) API to get all available agents in a queue                                      | [Go](go/GetQueueAvailableAgents)                                                                 |\n| Add Connect User                                 | Add a new user to Amazon Connect                                                                                                                                                                       | [PowerShell](powershell/New-ConnectUser)                                                         |\n| Multi Account / Multi Instance Metric Collection | Collect metrics from multiple accounts                                                                                                                                                                 | [Python](python/multiaccountmetrics/multi_account_metrics.py)                                    |\n| Restrict Deskphone in CCP                        | Enforce deskphone settings with javascript in the CCP                                                                                                                                                  | [Javascript](javascript/restrict-deskphone-in-ccp)                                               |\n| Remote Control Center                            | Centrally manage prompts and routing configurations in DynamoDB                                                                                                                                        | [Python](python/remote-control-center)                                                           |\n| 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](python/contactflowhelper)                                                               |\n| Create Tasks Programmatically                    | CloudFormation template to enable you to programmatically create an Amazon Connect Task                                                                                                                | [Javascript](javascript/programmatically-create-task-example)                                    |\n| Amazon Connect Reg-Ex Patterns                   | For use in Cloudformation templates                                                                                                                                                                    | [Tools](tools)                                                                                   |\n| Amazon Connect Draw.io Objects                   | Contact flow blocks that can be imported into Draw.io                                                                                                                                                  | [Tools](tools)                                                                                   |\n| Check Time Left                                  | This snippet helps make a routing decision whether to add a new contact to the queue or take another action (like terminating the call) based on the queue length and the business hours for that day. | [Python](python/CheckTimeLeft)                                                                   |\n\n## Projects\n\n| Name                         | Description                                                                                                                                                                                                                          | Links                                              |\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| Context Routing              | Uses CTR processing, Lambda, and DynamoDB to track IVR task completion and return callers to incomplete tasks                                                                                                                        | [CloudFormation](projects/ContextRouting)          |\n| 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](projects/SCV-CrossAccountSMS)     |\n| CallerHistory                | The caller history project utilizes AWS Lambda and Amazon DynamoDB to record if an individual has contacted previously though a user defined identifier and records time of last contact.                                            | [CloudFormation](projects/CallerHistory)           |\n| CrossRegionCrossAccount      | This project shows how to call an AWS Lambda function that exists in a separate account or a separate region using AWS Lambda permissions.                                                                                           | [CloudFormation](projects/CrossRegionCrossAccount) |\n| GetSetDataByID               | This project expands on the CallerHistory project by implementing additional functionality to get, put, and update items in Amazon DynamoDB.                                                                                         | [CloudFormation](projects/GetSetDataByID)          |\n| LastAgentRouting             | This project shows how to potentially implement last agent routing for customers using a voice channel.                                                                                                                              | [CloudFormation](projects/LastAgentRouting)        |\n| LambdaAlias                  | This project shows how to provide access to an AWS Lambda function Alias from Amazon Connect.                                                                                                                                        | [CloudFormation](projects/LambdaAlias)             |\n| ContextRouting               | This project demonstrates how you can use contact trace record processing, Lambda, and DynamoDB to track a callers progress through an IVR task, such as making a payment, and return them to that task should they be disconnected. | [CloudFormation](projects/ContextRouting)          |\n| Rate Limiter                 | The rate limiter project utilizes AWS Lambda and Amazon DynamoDB dynamically to add rate limiting a caller to a Amazon Connect queue based on their phone number and/or IP address.                                                  | [CloudFormation](projects/RateLimiter)             |\n| CCP Log Parser               | A visualisation tool to visualise CCP logs to help troubleshoot client side errors                                                                                                                                                   | [link](tools/CCPLogParser)                         |\n| Dynamic Contact Center       | This project demonstrates how you can use persistent session attributes to develop modular, repeatable and dynamic contact flows                                                                                                     | [CloudFormation](projects/DynamicContactCenter)    |\n| Connect Cloudwatch Dashboard | This project automates the creation and deployment of a Cloudwatch Dashboard to monitor critical metrics for an Amazon Connect instance                                                                                              | [link](tools/ConnectCloudwatchDashboard/README.md) |\n\n\n## Contributions\n\nMake sure the `.gitignore` per language is applied.\nMake sure your snippet has no external dependencies.\nMake sure your snippet is self-contained.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazon-connect%2Famazon-connect-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famazon-connect%2Famazon-connect-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazon-connect%2Famazon-connect-snippets/lists"}