web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Generating Architectur...
Copilot Studio
Suggested Answer

Generating Architecture, Process & ER Diagrams Automatically Using Copilot Studio AI Agent

(1) ShareShare
ReportReport
Posted on by 4

Hello Community,

I’m working on an AI Agent in Microsoft Copilot Studio to automatically generate diagrams from an Improvised BRD (Word) and a Schema file (Excel) added in the Knowledge tab.

Requirement

The agent should generate diagrams such as:
  • ER Diagram
  • Use Case Diagram
  • (and other solution diagrams aligned with BRD & schema)

What I’ve Tried

  • Copilot Studio agent + Power Automate
  • Generating Mermaid code
  • Rendering diagrams using Kroki (mermaid/svg)
Challenges
 
  • Only Mermaid code is generated
  • Frequent rendering/syntax errors
  • No native way to create or store visual diagram files (SVG/PNG/Visio)
​​​​​​​Questions
  1. Is there any recommended approach in Copilot Studio to generate actual diagram files instead of only Mermaid code?
  2. Has anyone successfully implemented diagram generation using a Copilot Studio agent (from BRD / Schema)?
  3. Are there better alternatives than Mermaid + Kroki for this use case?
  4. What is the best-practice way to keep diagrams in sync with BRD and schema updates?

Any guidance or real-world examples would be appreciated.
Thanks in advance!

Screenshot 2026-01-07 105039.png
Screenshot 2026-01-07 105704.png
Categories:
I have the same question (2)
  • Suggested answer
    AW-09010751-0 Profile Picture
    26 on at
    (Just brainstorming here...)

    Have you considered generating the Mermaid Code and then posting it to a Service that renders that into an SVG or PNG and then trying to display that?

    Alternatively, with https://mermaid.live/edit -- the diagram is encoded into the URL.
    (https://play.d2lang.com/ does something similar, and they have an Export feature.)

    Having said that... I believe that you can't inline an image -- the chat is text only.
    One workaround for showing an image is to make an Adaptive Card and display that.
  • AW-09010751-0 Profile Picture
    26 on at
    It sounds like you have tried the service rendering approach -- I wasn't aware of Kroki until now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 599

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard