Email an admin a recap
Send the admins of your company a recap email, by default the digest of one AI dashboard. Primo draws its fixed recap email from the blocks you fill in (numbers, actions, list, breakdown, insight, agents); the title and the footer are added by Primo, and the dashboard button appears when dashboardId is given. It goes to one admin of your own company, the one adminId names (as getAdmins returns them): one recap per admin, never a mailing list. There is no address field and no URL field: the email links to the dashboard (when given) and to your agent only. Every value is plain text, no HTML and no markdown. getAiDashboardData gives the dashboard’s numbers to put in the blocks.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Body
The language of the text, as a BCP 47 tag: "en", "fr". It formats the dates.
^[a-z]{2}(-[A-Za-z]{2})?$The subject of the recap, then the period in a few words: "Today · 3 actions this week".
1 - 60The period's most important change, in one sentence.
1 - 140The admin's first name and the period's verdict, in one sentence.
1 - 120The days the recap covers, as YYYY-MM-DD dates.
The id of the dashboard the recap is about, as getAiDashboardData returns it; null when the recap is not about one AI dashboard.
^[0-9a-fA-F]{24}$The dashboard's name as getAiDashboardData returns it, "Today" for the first one; null when the recap is not about one AI dashboard.
1 - 80Your own agent id, as your instructions give it.
^[A-Za-z0-9-]{1,64}$1 to 5 blocks, in display order. Values only: no HTML, no markup, no URL.
1 - 5 elements- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
The one admin to email, as returned by getAdmins (an employee id or an external userId).
1Response
-9007199254740991 <= x <= 9007199254740991