A 100% Serverless WhatsApp Agent: Go + AWS Lambda + EventBridge
dev.to·2d·
Discuss: DEV
FastAPI
Preview
Report Post

Building a WhatsApp Cloud API Agent on AWS Lambda Using Go

In this post I want to share how we designed a WhatsApp Cloud API agent that is 100% serverless, built with Go and AWS. The goal was to keep costs extremely low while still being ready for large-scale message traffic.

The project powers an automated commercial agent for Barx, talking to customers over WhatsApp, powered by OpenAI Agents behind the scenes.


High-level architecture

Everything runs serverlessly on AWS:

  • API Gateway HTTP API (v2): single entry point for the WhatsApp webhook and auxiliary endpoints (verification + Swagger).

  • Lambda functions (Go, provided.al2023):

  • wpp-verification: handles the Webhook verification challenge from WhatsApp Cloud API (GET `/we…

Similar Posts

Loading similar posts...