Skip to main content

Generative Email

Work In Progress
This feature is being rolled out incrementally to the various Seven20 email features over a number of releases. See Supported email actions for the full list of those currently supported

When composing an email via Seven20 email features, it is possible to dynamically generate email content through the use of custom flow actions. When configured for a particular email feature, a custom action will become available within the existing template selection menu; when such an action is selected, the configured flow will be launched. This allows for a wide variety of use cases to be met, referencing data within Seven20 to create content in a bespoke way to meet the needs of individual clients and the specific context of the email being sent - this effectively allows for replacing traditional static email templates with a more dynamic and flexible approach.

Generative email custom actions support both screen flows, which can present users with input opportunities, and 'headless' auto-launched flows which will simply generate and populate the content without further user interaction.

Flow implementation

Each of the below packaged flows can be used as a template:

ValueType
seven20_Generative_Email_Action_TemplateAutolaunched Flow
seven20_Generative_Email_Action_Screen_TemplateScreen Flow

Input variables

The following input variables are always required:

Variable NameTypeDescription
whatIdIdThe Id of the associated SObject record
whoIdIdThe Id of the recipient

For specific email actions, additional context is available for use in generating email content. This allows for additional data to be used in emails beyond what would ordinarily be available in email templates via merge fields from the whatId and whoId.

Flows configured for such actions will require the input variable contextDetails. This variable is a collection of an Apex-defined data type where each member contains one or more additional record Ids, enabling the flow to pull information from records. Each member has the following properties:

Variable NameTypeDescription
keyTextUnique identifier of the email action context, populated at the action level e.g. relatedRecord
contextIdTextA record Id sourced from an action context; mutually exclusive with contextIds
contextIdsText collectionRecord Ids sourced from an action context supporting multiple records of the same SObject type; mutually exclusive with contextId

Required output variables

Variable NameTypeDescriptionDefault
subjectTextThe email subject, in plain textPlaceholder
bodyTextThe email body, in rich textPlaceholder
isPreformattedHtmlBooleanShould be set to true if the body is HTML-formattedfalse
tip

This flow-based approach also supports the use of Seven20's AI flow capabilities to allow for generation of email content via LLM.

Supported email actions

These are the email actions currently supported:

LocationActionCustom action processFlow inputsContext details
Job/Contact record pageSend Job SpecificationEmail Template Generation: Send Job SpecContact (whoId); Job (whatId)
Contact list viewMass Send Job SpecificationEmail Template Generation: Mass Send Job SpecJob (whatId)
Contact list viewSubmit Speculative CVsEmail Template Generation: Mass Submit A Speculative CVCandidates (relatedRecords)
Relationship list viewSubmit Speculative CVsEmail Template Generation: Mass Submit A Speculative CVCandidates (relatedRecords)
Job Lead list viewSubmit Speculative CVsEmail Template Generation: Mass Submit A Speculative CVCandidates (relatedRecords)
Job record pageMass Send Job SpecificationEmail Template Generation: Mass Send Job SpecJob (whatId)
Job record pageSubmit CandidateEmail Template Generation: Submit a CVApplication (whatId)
Job record pageEmail CandidatesEmail Template Generation: Mass Email CandidateJob (whatId)
ATS Additional DetailsEmailEmail Template Generation: ATS ApplicationsContact (whoId); Application (whatId)
ATSMass Email CandidatesEmail Template Generation: Mass Email CandidateJob (whatId)
ATSSubmit To JobEmail Template Generation: Submit a CVApplication (whatId)
ATS Interview transitionBook Interview - CandidateEmail Template Generation: Book Interview With A CandidateContact (whoId); Interview (whatId)
ATS Interview transitionBook Interview - Hiring ManagerEmail Template Generation: Book Interview With A Hiring ManagerContact (whoId); Interview (whatId)
Hotlist split view - single selectEmailEmail Template Generation: Hotlist MemberContact (whoId); Hotlist (whatId)
Hotlist split view - mass actionsEmailEmail Template Generation: Mass Hotlist MemberHotlist (whatId)
ATSSubmit Multiple CandidatesEmail Template Generation: Mass Submit To JobContact (whoId); Interview (whatId)Applications (relatedRecords)
Hotlist split view - mass actionsSend Speculative CVEmail Template Generation: Mass Submit A Speculative CV-Hotlist (relatedRecord), Candidates (relatedRecords)
Hotlist split view - single selectSubmit To JobEmail Template Generation: Submit a CV - HotlistContact (whoId); Application (whatId)Hotlist (relatedRecord)
Hotlist table viewSpeculative CVEmail Template Generation: Mass Submit A Speculative CV-Hotlist (relatedRecord), Candidates (relatedRecords)
Hotlist table viewEmailEmail Template Generation: Mass Hotlist Member-
Hotlist record pageMass Submit Speculative CVsEmail Template Generation: Mass Submit A Speculative CV-Hotlist (relatedRecord), Candidates (relatedRecords)
Contact list viewMass EmailEmail Template Generation: Mass Email Contacts
Contact record pageSubmit to JobEmail Template Generation: Submit a CVApplication (whatId)
Relationship list viewMass EmailEmail Template Generation: Mass Email Contacts
Application list viewMass EmailEmail Template Generation: Mass Email Applications
HotlistEmail All Hotlist MembersEmail Template Generation: Mailing ListHotlist (whatId)
Search split viewEmailEmail Template Generation: Mass Email Contacts
Search split viewSubmit Speculative CVEmail Template Generation: Mass Submit A Speculative CVCandidates (relatedRecords)
Search table viewEmailEmail Template Generation: Mass Email Contacts
Search table viewSubmit Speculative CVEmail Template Generation: Mass Submit A Speculative CVCandidates (relatedRecords)
Search Activity PanelEmailEmail Template Generation: Email Single ContactContact (whoId)
Job Board Application Rater Activity PanelEmailEmail Template Generation: JBA RaterContact (whoId), Job Board Application (whatId)
Role Related ListMass Email RolesEmail Template Generation: Mass Email RoleRecord* (relatedRecord)
Contact record pageSubmit Speculative CVEmail Template Generation: Submit a Speculative CVHiring Manager (whoId)Candidate (relatedRecord)
Contact record pageSubmit CV SpeculativelyEmail Template Generation: Submit a Speculative CVHiring Manager (whoId)Candidate (relatedRecord)
Job Lead record pageSend Speculative CVEmail Template Generation: Submit a Speculative CVHiring Manager (whoId); Job Lead (whatId)Candidate (relatedRecord)
Roles Related listMass Email Speculative CVEmail Template Generation: Mass Submit A Speculative CV-Record* (relatedRecord) Candidates (relatedRecords)
note

* For Roles Related list actions the Record object will be dependent on which object the action is launched from