Emailing a Document
With Merge Connect for Agentforce installed in your org, users can attach and email generated documents through an Agentforce conversation. This requires the Draft Email and Get User Info actions be added to your Agent's Topic.
- Navigate to an Object Record page.

- Select the Agentforce button on the page.

- With the Agentforce Agent chat, you can now provide a prompt to Draft Emails. For this example, you would need to generate the document first.

- You can provide a prompt such as ‘Get the related contact and draft an email with the generated document’.

- You will see a card containing information for a drafted email.

- If you would like to make any changes to your drafted email you can select the Edit button on the card.

- In the New File Email modal you will be able add additional files, add recipients, change the Subject or make adjustments to the body of the email.

- Once you have confirmed any additional changes, click Send.

- Once the email is successfully sent, you will see the Email Sent confirmation pill.

-
To generate an email with a generated document attached, we recommend you use the following prompts:
-
"Draft an email using the document we generated."
-
"Draft an email using to [recipient email] containing the document we just generated."
-
"Get the related contact and draft an email with the generated document."
-