MoEngage Implements Agentic Marketing with Bedrock AgentCore

MoEngage has transitioned its existing APIs into agent tools using Amazon Bedrock AgentCore and MCP without rewriting them. The four agent modes of Merlin AI integrate marketing workflows into a single conversation, achieving a 38% increase in push notification click-through rates in the Glance case. The architecture consists of four layers: client, MCP server, platform API, and foundation model, ensuring tenant isolation and permissions.

Transition from Fragmented Marketing Tools to an Agentic Layer

The starting point of this project was a field diagnosis indicating that marketing teams spend a significant amount of time exploring tools, switching between an analytics dashboard, content library, and campaign builder while planning weekend flash sales. MoEngage is a customer engagement platform used by over 1,350 consumer brands across push, email, in-app, SMS, WhatsApp, and RCS channels, and determined that a "third layer where agents perform steps across the platform when users describe results in natural language, beyond the two layers of UI and API" was necessary.

"A third layer is emerging where agents perform steps across the platform when users describe results in plain language."

Under this recognition of the problem, MoEngage built a suite of agent products called Merlin AI. The core constraint was to provide agents with safe and tenant-scoped real-time data access without rewriting the existing hundreds of APIs. As a solution, Amazon Bedrock and Amazon Bedrock AgentCore were chosen, and Model Context Protocol (MCP) was adopted as the standard interface.

Four Agent Modes of Merlin AI and Role Distribution

Merlin AI uses Anthropic Claude Sonnet 4.6, 5, 5.5 from Amazon Bedrock for inference, tool calling plans, and content generation across all modes, hosted on the AgentCore runtime and sharing a common base for data access via MCP.

ModeRepresentative AgentCore Function
Embedded Agent (Studio)Copywriter, Designer, Segment Assist, Jinja Assist, In-app Template Builder, Flow AssistGenerates copy, creates banners, transforms segments, converts Jinja/Liquid markup, creates HTML templates, structures journey flows at precise workflow points
Interactive AgentCampaign Insights Agent (three sub-agents for analysis, diagnosis, and comparison)Queries and executes across campaigns, analysis, segments, and flows using natural language
Custom AgentLifecycle and CRM team-defined agentsContinuously executes on MoEngage data and tools, with options for autonomous or human review modes
Decision-making AgentOffer Decisioning, Campaign DecisioningMakes 1:1 decisions on optimal offers, channels, timing, and frequency for each customer, learning continuously from results

Embedded Agent: Solving Workflow Points

Merlin AI Studio places purpose-built agents at the exact points where marketers work. For example, Segment Assist converts natural language descriptions like "users who abandoned their cart in the last 2 hours" into the correct attribute and filter sets. Flow Assist transforms high-level ideas into ready-to-deploy customer journeys, sequentially performing internal steps of request interpretation → path suggestion → flow structure composition → refinement with historical data → deployment packaging.

  1. request interpretation
  2. path suggestion
  3. flow structure composition
  4. history refinement
  5. deployment packaging

Interactive Agent: Multi-Sub-Agent Collaboration

The Campaign Insights Agent is embedded in the analytics page, with three sub-agents sharing roles. One analyzes multiple metrics simultaneously, the second diagnoses the causes of poor metrics, and the third compares performance across periods and segments. The final step formats the results into clear answers.

Custom and Decision-making Agents: Autonomy and Guardrails

Custom agents continuously execute on MoEngage data and tools within the rules defined by product and marketing teams. All agents transparently disclose their work history through activity logs (data queries, decisions, channel contacts, sent content), with options for fully autonomous mode or human pre-review mode. Decision-making agents perform 1:1 decisions on offers and campaigns, integrating the "gentleman side of agentic marketing" into a single system with workflow agents.

Four-Layer Architecture: Responsibility Separation, Tenant Isolation, and Reuse of Existing Assets

The architecture is composed of four layers according to the single responsibility principle, allowing each layer to be modified without affecting others.

``` [Clients] → [MCP Server on AgentCore Runtime] → [MoEngage Platform APIs] → [Foundation Models in Amazon Bedrock] ```

Roles by Layer

1. Clients: Merlin AI agents within MoEngage products and external MCP clients (Claude, ChatGPT, etc.) access via the MoEngage MCP Connector. 2. MCP Server on AgentCore Runtime: Exposes MoEngage platform capabilities as MCP tools, does not hold its own models (inference is performed by calling agents), and creates user-specific isolation sessions after JWT verification. 3. MoEngage Platform APIs: Existing APIs compatible with OpenAPI 3.0 called by the MCP server, applying existing permissions and data residency rules. 4. Foundation Models in Amazon Bedrock: Used by agents for tool calling plans, content generation, and result summarization, referencing model availability by region.

Request Processing Flow

  1. user login/query
  2. send request with JWT
  3. validate AgentCore runtime token and start isolation session
  4. plan tool calls for Bedrock models
  5. MCP server calls API with tenant context
  6. return results and generate response

The key point is that the MCP server wraps existing APIs to expose them as tools, enabling agentification without rewriting APIs. Tenant isolation is ensured through JWT-based authentication and isolation sessions in the AgentCore runtime, with existing compliance rules like data residency operating as they do at the API layer.

Pattern for Agentifying Existing API Assets with MCP

The pattern demonstrated by MoEngage serves as a standard template for SaaS platforms adding an agent layer.

This approach minimizes development costs and migration risks by focusing on "exposing existing APIs as MCP tools" rather than building new APIs for agents.

Empirical Results and Platform Provider Reproduction Guide

The actual customer Glance recorded a 38% increase in push notification click-through rates after implementing Merlin AI. This figure is interpreted as a result of the combination of embedded, interactive, and decision-making agents optimizing content, timing, and channels on a 1:1 basis.

Checklist for platform providers to reproduce this pattern:

Implications: The Agent Layer as the Third Layer of SaaS

The MoEngage case presents early evidence that B2B SaaS is evolving into a three-layer platform of "UI → API → Agent". The agent layer can be built by wrapping existing API assets with standard protocols like MCP, simplifying security architecture by delegating tenant isolation, permissions, and compliance to the existing API layer. Development organizations should focus on "agentifying existing APIs with MCP tools" rather than building new backends for agents, while product organizations should design combinations that fit their domain among the four modes of embedded, interactive, autonomous, and decision-making workflows.

Verified figures

Our take

The MoEngage case presents an empirical blueprint for SaaS to layer an agent layer on top of existing API assets without discarding them using the MCP standard. In particular, the architecture that delegates tenant isolation and permissions to the existing API layer significantly lowers enterprise adoption barriers.

Open questions

Models mentioned

ProviderInputOutputContext window
Anthropic: Claude Sonnet 4.6 · Anthropic$3$151,000,000

Source

Back to catalog