The document outlines a solution for integrating Instagram messaging with Amazon Connect, enabling businesses to manage customer interactions through both platforms seamlessly. Here's a summary and key points from the guide:
Key Components
-
Infrastructure:
- AWS API Gateway: Receives Meta webhook verification requests and inbound messages.
- Lambda Functions:
- Inbound Handler: Processes Instagram messages and routes them to Amazon Connect Chat.
- Outbound Handler: Sends agent replies back to Instagram via the Graph API.
- DynamoDB Tables:
- Active Connections table: Tracks open chat sessions.
- Instagram Users table: Caches Instagram user profiles with TTL-based expiry.
- AWS SNS Topic: Delivers Amazon Connect streaming events to the Outbound Handler.
- Secrets Manager: Stores sensitive information like the Instagram User Access Token.
- Systems Manager Parameter Store: Holds configuration details such as Connect instance ID, contact flow ID, verification token, and Instagram account ID.
-
Deployment Prerequisites:
- An Instagram Business or Creator Account connected to a Meta App with the Instagram API configured.
- An Amazon Connect Instance.
Supported Message Types
- Inbound (customer → agent):
- Text: ✅
Read the full article at DEV Community
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.





