For day two of dashboard week the objective was to build a dashboard using Prompt Engineering and replicate the following dashboard with the data from the workbook.

The way in which I structured this was to first figure out what the different structure and colours of the dashboard were, as part of the brief required a dashboard to be created using AI. This meant studying the proportions, design elements and data, as well as considering the dataset, design specifications and UX. The prompts then had to be designed so that they returned an interactive dashboard which reproduces the layout, visual hierarchy, styling and data interactions as closely as possible, and this could be built either in Gemini Canvas or externally in Vercel.

For the project to be successful, there were four things which had to be checked off. The first was structural fidelity, where the grid layout, spacing, card proportions and component placements mirror the reference dashboard. The second was the design system and styling, where the hex colours, theme, card borders and sizing, icons and fonts match the reference. The third was data and chart alignment, which required the correct chart types to be selected (for example, stacked area versus line), with the axis labels, legends and data matching the domain. The last was prompt engineering craft, where the prompt uses structured markdown sections, clear parameter constraints and zero filler prose.

This then ended up looking like this:

The next step after that was to simply start vibe coding what the different charts and KPIs were for the different sections. In doing this, I also included the different details relating to the symbols and the format of the parameters and hover buttons.

The columns in this table for the Category option will be 'Category', 'Rank # Campaigns', 'Click Rate', 'Open Rate', 'Unsubscribe Rate', 'CY sends' representing current year values with a M separator and a bar (#c3cbe2) below the value , 'YoY Sends' with an icon showing an ↗↘ arrow enclosed in a circle with the down being represented as #c9bdf6 and up as #d0e3fd along a negative or positive percentage with no decimal places.

On the first iteration, the prompt had to firstly get the charts and then create a dashboard from them. This was the result.

The second iteration proved to give a dashboard resembling something close to what the intended dashboard was meant to look like. Throughout the different iterations different bits of the prompt were altered until it eventually resembled the finalised product.

file:///C:/Users/MelissaOsorio/Downloads/email_campaign_dashboard_2023%20(3).html