Case Study · AI Agents

    An MCP server that turns a sentence into a working chat flow

    Our client's SaaS platform lets businesses build chat flows node by node. Building big flows was slow and needed expert users. AMT added a Model Context Protocol server that generates a full flow from a plain-language prompt and suggests the next node while users build by hand.

    Schedule Technical Discovery

    Your first conversation will be with a senior technical partner, not a salesperson.

    Published

    At a glance

    Client
    Company running an in-house SaaS automation platform with a node-based chat flow builder
    What AMT built
    An MCP (Model Context Protocol) server connected to the platform's backend, workflow metadata and AI models
    AI models
    OpenAI models and Anthropic models, selected per task
    Stack
    Angular, Node.js, Python, MongoDB, OpenAI API, Anthropic API
    Result
    Faster flow creation, less manual node configuration, usable by technical and non-technical users

    The short version

    Users can now type "Create a customer support flow for refund requests" and get a structured chat flow with the right nodes and connections. While they build manually, the server reads the flow so far and recommends the next logical node. The MCP server sits between the SaaS backend, the platform's node configurations and two AI providers, and picks whichever model suits the task.

    The problem

    The platform already supported chat flows for customer support, onboarding, notifications and task automation. Building them was the hard part:

    • Users found it difficult to pick the right sequence of nodes.
    • The builder gave little guidance while a flow was being built.
    • Configuring each node by hand took time.
    • Large conversational workflows got complex fast, so only experienced users built them well.

    What AMT built

    An MCP server as the AI layer

    AMT built a Model Context Protocol server that works as an intelligent service layer. It talks to three things:

    1. The SaaS platform backend
    2. Workflow metadata and node configurations
    3. AI models from OpenAI and Anthropic

    Because the server has the platform's real context, its suggestions match how flows actually work on that platform, not generic chatbot logic.

    Whole flows from a prompt

    Users describe the workflow they want in plain language, for example:

    • "Create a customer support flow for refund requests"
    • "Build a chatbot flow for booking confirmations"

    The MCP server turns the prompt into a structured chat flow with nodes and connections the user can then edit.

    Next-node suggestions while building

    When users build by hand, the server analyses the current flow and recommends the next node. Suggestions draw on:

    • Nodes already in the flow
    • Node dependencies
    • Historical usage patterns
    • The flow's logic

    Two model providers, picked per task

    • OpenAI models handle reasoning, workflow generation and intent understanding.
    • Anthropic models handle structured responses and contextual recommendations.

    The server chooses the most suitable model for each task, which also gives the platform a fallback if one provider has problems.

    Results

    • Faster chat flow creation
    • Intelligent node recommendations inside the builder
    • Less manual configuration
    • More accurate workflow designs
    • A builder that non-technical users can use, not just experts

    Technology stack

    Technology stack
    LayerTechnology
    Front endAngular, HTML, CSS
    Back endNode.js, Python
    AI integrationOpenAI API, Anthropic API
    AI layerMCP server (Model Context Protocol implementation)
    DatabaseMongoDB

    Before you build something similar

    1. What context does the model need? An MCP server is only as useful as the product data it can see. List the metadata, configurations and history it should read.
    2. What should the AI be allowed to change? Generating a draft flow the user reviews is very different from editing live flows. Decide that boundary first.
    3. One model or several? Routing tasks to different providers can improve quality and resilience, but you have to test each route.
    4. How will you measure success? Time to build a flow and how much users edit the AI's draft are both good signals.

    FAQ

    What is an MCP server?

    An MCP (Model Context Protocol) server is a service that gives AI models structured access to an application's data and actions. Here it lets the models read the platform's workflow metadata and node configurations so they can generate and suggest valid chat flows.

    Why use both OpenAI and Anthropic models?

    Each was assigned the tasks it handled best. OpenAI models do reasoning, flow generation and intent understanding. Anthropic models do structured responses and contextual recommendations. The server picks per task.

    Can AI build a complete workflow from a description?

    Yes. Users type a description such as "Build a chatbot flow for booking confirmations" and the server returns a structured flow with nodes and connections, ready to edit.

    Does this replace manual building?

    No. Users can still build by hand, and the server suggests the next node as they go.

    Tell us which part of your product you want AI to do for your users.

    See how AMT builds MCP servers →