Articles in this section

How to insert AI Text into a template

This article explains how to insert AI text into a PowerPoint presentation or Word document. AI smart fields introduces Generative AI (plain and formatted text) as source for placeholders.

  Prerequisites

  • AI Text smart fields, Dynamics Compile, Library and Universal AI Assistant or Custom AI Assistant modules enabled.
  • Version 7.3.102 or later is required to use AI smart fields in Template Designer.
  • Admin/owner access to the Templafy tenant.

  Important

Below is a breakdown of the technical limitations of inserting AI Text into PowerPoint and Word.

AI smart field support is limited to:

  • For PowerPoint, placeholders on Slides that can contain text.
    • Placeholders on the Slide Master or a Slide Layout are not supported.
    • Other shapes are not supported.
  • Create flow. Updating AI smart fields in a presentation or document is not supported.
  • Viewing AI content citations in document comments, with Microsoft 365 Desktop or Web Application, and with the Microsoft Office PowerPoint 2021 perpetual version.
  • Using AI Assistant prompt templates that do not contain form questions (in Template Designer, the Prompt Template dropdown only shows available prompt templates that do not contain form questions).

The supported formatting when using Render as markdown is limited to:

  • Text formatting: BoldItalic, Underline and  Strike-through .
  • Paragraphs.
  • Line breaks.
  • List levels.
  • Non-breaking space and non-breaking hyphen.
  • Headers 1-6 (in Word).
  • Hyperlinks.

Included functionalities

The following functionalities are included:

  • The AI text smart field generates text content based upon a prompt template and connected model and knowledge.
  • Formatting of text generated by the AI prompt template using markdown.
  • For each of the AI generated placeholders an Office Comment is added in PowerPoint and a Document Comment is added in Word with a citation that the content was generated with help of AI.

  Note

  • Each AI smart field can be used with the same or a different AI Assistant prompt template.
  • The binding used in an AI smart field is not aware nor connected to the context of any other AI smart field in the presentation.

Inserting AI text in PowerPoint

In this example, the 'Rephrase' prompt template is used. In PowerPoint the user types a text and the output is a rephrased text. In the Admin Center the 'Rephrase' prompt template contains the instructions below:

rephraseprompt.png

  Tip

This article explains how you can add, edit or remove AI prompt templates.

  1. In PowerPoint create a new template.
  2. On the Form tab, click + Add question.
  3. In the Type field select Text. In the Question title field type 'Title'.
  4. Click Add to form.
  5. In the Type field select Text. In the Question title field type 'Product info'.
  6. Set the Textbox height to '5'.
  7. Click Add to form.
  8. On the Template tab, expand Form responses and click 'Title'.
  9. In the template select the 'Click to add title' placeholder, then click Add to template:
    clicktoaddtitle.png
  10. In the template select the 'Click to add subtitle' placeholder.
  11. On the Template tab click + Add smart field, then click AI Text:
    templatetabaitext.png
  12. Fill in the following values:
    productinformation.png
    • Display name: 'Product information'.
    • Prompt template: Select 'Rephrase' in the dropdown.
    • Message{{Form.Product_info}}.
  13. Click Add to template. The result looks like this:
    titleproductinformation.png

      Tip

    To add more placeholders, open the Slide Master view and select a layout. Then on the Slide Master tab, click Insert Placeholder and select a Content or Text placeholder (for using AI Text):

    insertplaceholder.png

  14. Save the template and upload it to the Admin Center.
  15. Open the template as an end-user and enter a title and product information:
    composerproductinfo.png
  16. When Open in PowerPoint is clicked, Templafy AI will rephrase the text. The result looks like this:
    rephrasedtext.png

      Important

    • Keep in mind that the next time you create a new presentation the result can be different text!
    • Next to the thumbnail a comment icon is shown. When selected, the Comments task pane is opened. This is to inform the end-user that the content on this slide was generated by Templafy AI:
      powerpointcomments.png

 

Inserting AI text in Word

In this example, the 'Engagement Builder' prompt template is used. In Word, the user can select options from the configured form fields, and a scope of services text will be generated. In the admin center, the 'Engagement Builder' prompt template contains the following instructions.

  Tip

This article explains how you can add, edit or remove AI prompt templates.

  1. In Word, create a new template.
  2. On the Form tab, click + Add question.
  3. In the Type field select Text. In the Question title field type 'Service Type'. 
  4. Click Add to form.
  5. Repeat steps 2-4 for another Text field with the Question title, 'Company name'.
  6. On the Template tab, select the option AI Text.
  7. Fill in the following values:
    • Display name: 'Scope'.
    • Prompt template: Select 'Engagement Builder' from the dropdown.
    • Message: Add the instructions for this prompt template that include the context from the form fields - 
      A detailed description without starting header or title of the {{Form.Service_Type}} services to be provided 
        - Specific limitations on the scope, if applicable (e.g., services not included unless explicitly requested).
        - Explanation of the applicable standards (e.g., International Standards on Auditing for audit engagements).
      For context, Identification of the parties involved (us <company name> and {{Form.Company_name}}).
    • Ensure Render as Markdown is checked.
  8. Click Add to template.
  9. Save and update the template to the Admin Center.
  10. The output will look like this with the AI generated text highlighted with the comment "This content was generated by Templafy AI."

  Tip

  • The AI Text field message can be grounded in or contain all available dynamic content including Data Sources, External Data Sources, User Profile, Forms, HostSystem and/or Formula bindings.
  • When designing the template, consider what part of the prompt to put in the Prompt Template and what should be included in the AI Text field message. 
  • To more easily maintain the AI Text field message content, consider using a Data Source to store parts of the message.
PowerPoint AI Dynamics smart fields ai assistant tech_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.