Generating a Document
With Merge Connect for Agentforce installed in your org, you can generate documents through the Agent conversations. This requires the Merge Files and Get Merge Templates actions be added to your Agent's Topic.
- Navigate to an Object Record page.

- Select the Agentforce button on the page.

- The Agentforce Agent conversation window will appear.

- You can provide a prompt such as ‘Generate a document using Merge Connect’.

- When the prompt is successful you will see the Merge Connect Templates component. Select + Add Template.

- You will be prompted with the Select Template modal. Choose your desired template(s) and click Select.

- You will now see your selected templates. You can clear your selections by hitting the Clear button.

- Additionally, if you select the picklist, you will be the given the option to generate the document as a PDF.

- Once you have confirmed your documents, click Submit.

- Once completed, you will see a hyperlink to your generated document. If you have the Generated Documents component on your page, you will see your generated documents on the component once the page has been refreshed.

- When generating a document from chosen template, we recommend following prompts:
-
"Generate a document"
-
"Generate a document using Merge Connect"
-
"Merge a document"
-
- Additionally, you can provide a prompt such as ‘Generate the [template name] template’.

- This will automatically generate a file using the specified template.

- When generating a file from a specified template, we recommend the following prompts:
-
"Use the [Template Name] in [Supported File Format]."
-
"Generate the [Template Name] document using Merge Connect."
-