- At first the Desktop Flow will transform your Datatable to a HTML table by dynamically reading all the column headers and column values.
- Then call GPT by giving your own formatting instructions
I have used the below example:
Please provide a CSS for the below.
- table header as dark blue
- every alternate row as light gray
- Font as verdana
- text align to center
- border 2px
- width as 80%
- GPT will respond with a CSS
- Append this CSS variable to the HTML variable of Step 1
- That’s all: Your Datatable is now a formatted html table.
Use this formatted html table in your Outlook emails or anywhere you would like to.

- Refer above input and output images of different samples
- Does not require your data to be sent to GPT
- All of this, shown in a Desktop Flow attached to this page
- How to use GPT in Power Automate Desktop?
Integrating ChatGPT with Power Automate Desktop - Power Platform Community (microsoft.com)
NOTE: In lieu of calling the Open AI GPT, you can also use the new in-built GPT action called ‘Create text with GPT on Azure OpenAI Service’ shown here AI Builder actions reference (preview) - Power Automate | Microsoft Learn
- Refer the Comments in the Flow and follow the instructions accordingly.
- Attached Desktop Flow was built on PAD Version 2.33