# FileMaker Web Viewer Copilot with OpenAI Assistant and CodeMirror.js

**URL:** https://the.fmsoup.org/t/filemaker-web-viewer-copilot-with-openai-assistant-and-codemirror-js/4702
**Category:** Sample files & code
**Tags:** web\_viewer, ai, integration, assistant, copilot
**Created:** [March 10, 2025, 5:46pm UTC](https://the.fmsoup.org/t/filemaker-web-viewer-copilot-with-openai-assistant-and-codemirror-js/4702 "2025-03-10T17:46:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![greenflux](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/greenflux/32/3171_2.png) [@greenflux](https://the.fmsoup.org/u/greenflux)
#### Post date: [March 10, 2025, 5:46pm UTC](https://the.fmsoup.org/t/filemaker-web-viewer-copilot-with-openai-assistant-and-codemirror-js/4702/1 "2025-03-10T17:46:49Z")

</div>

Last year I built a code editor in FileMaker Pro to make it easier to work with web viewer code. It was a huge improvement, but I still found myself copy/pasting code to ChatGPT for more complex code. So I decided to combine that code editor app with the ChatFMP app I made that integrates with an OpenAI Assistant.

Now you can generate any web viewer from a single text prompt, without even leaving FileMaker! Just describe the new UI component you want, and the assistant will generate the code, updating the web viewer automatically.

**Here are a few examples that were made with a single prompt!**

![image](https://media.daily.dev/image/upload/s---xhoH85j--/f_auto/v1741628335/ugc/content_1786948d-4493-43bb-b753-87a5fd60ab45)

![image](https://media.daily.dev/image/upload/s--2QOIPt-o--/f_auto/v1741628361/ugc/content_88677b64-d08f-445e-a62b-a008170222f5)

![image](https://media.daily.dev/image/upload/s--Sr5t_lpL--/f_auto/v1741628375/ugc/content_7ceee693-3307-40f9-9dca-7e63d963c894)

I’ve added the finished app to my [FileMaker Experiments repo](https://github.com/GreenFluxLLC/FileMaker-Experiments/tree/main/Web%20Viewer%20Copilot) on GitHub, and published a new tutorial here:

> **[FileMaker Web Viewer Copilot with OpenAI Assistant and CodeMirror.js](https://blog.greenflux.us/filemaker-web-viewer-copilot-with-openai-assistant-and-codemirrorjs)**
>
> Generate Custom UI Components With Plain Text Prompts

---

<div class="post-metadata">

### Author: ![greenflux](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/greenflux/32/3171_2.png) [@greenflux](https://the.fmsoup.org/u/greenflux)
#### Post date: [March 10, 2025, 5:48pm UTC](https://the.fmsoup.org/t/filemaker-web-viewer-copilot-with-openai-assistant-and-codemirror-js/4702/2 "2025-03-10T17:48:27Z")

</div>

By the way, I'll be at Claris Engage in Austin, TX in a few weeks if anyone wants to meet up!

---

<div class="post-metadata">

### Author: ![jwilling](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/jwilling/32/256_2.png) [@jwilling](https://the.fmsoup.org/u/jwilling)
#### Post date: [March 25, 2025, 8:40pm UTC](https://the.fmsoup.org/t/filemaker-web-viewer-copilot-with-openai-assistant-and-codemirror-js/4702/3 "2025-03-25T20:40:45Z")

</div>

I spotted the wild greenflux at Engage!
