Create and Manage Prompts to Use in Forms

Prompts tell the AI how to enhance text that mobile users enter on device. As a form designer, you upload context files that give the AI background information, then write prompts that reference them. After you save a prompt, it's available to add to any Text Area question in the same FormSpaceClosed FormSpaces are where forms are stored and organized in the TrueContext Web Portal. A TrueContext Team may have multiple FormSpaces, depending on their needs. Admins can set FormSpace permissions to control which users have access to the forms in that FormSpace..

Available on the Elite tier:

Digital
Intelligent
Elite
?

Contents

Video demo

Prerequisites

  • You must be an Admin user or a User with Can Create FormSpace permissions.

  • An Admin user must have approved AI usage for your team. For details, go to Approve AI Usage for Your Team.

Manage context files

Context files give the AI background information when enhancing text. Examples of context files include product manuals, style guides, and terminology standards. A single uploaded file works across multiple prompts in the same FormSpace.

Upload a context file

  1. Prepare your context file. The file must:

    • Be a Markdown (.md) or plain text (.txt) file.

    • Be 100 KB or smaller.

  2. In the Web Portal, go to Forms & Integrations > Context Files, and select create context file.

    Result: The Create Context File page opens.

  3. Enter a File Name. This is the unique name for the file in the Web Portal.

    Note:If you enter a File Name that already exists in the FormSpace, the new upload replaces the existing file.

  4. Select Choose File and pick a file from your computer.

    The Create Context File page in the Web Portal, with the File Name 'Inspection Form Context' entered and 'InspectionFormContext.md' selected through the Choose File button. A callout reads 'Upload a markdown or text file'.

  5. Select Save.

    Result: The portal validates the file. If the format or size isn't supported, an error appears. If the file is valid, the file's detail page opens and the file appears in the Context Files list.

Note:You can’t edit context file contents in the Web Portal. To update the contents, download the file, edit it locally, and upload the new version.

Download a context file to edit it

  1. In the Web Portal, go to Forms & Integrations > Context Files.

  2. Select the file name to open its detail page.

  3. In the Content section, select Download this file.

    Result: The system downloads the original uploaded file to your computer.

Edit a context file

Use Edit Context File to rename the file or upload a replacement. To change the file's contents, download the file, edit it on your computer, then upload the new version.

  1. Open the detail page for the file.

  2. Select edit context file.

    Result: The Edit Context File page opens with the current File Name pre-filled.

  3. Edit the File Name if needed.

  4. Select Choose File and pick a new file from your computer.

  5. Select Save.

    Result: The new file replaces the original. All prompts that reference this file now use the new contents.

Delete a context file

Note:If any prompt references a context file, the Delete option in the file's menu isn't available. The detail page's Referencing Prompts panel shows which prompts reference the file. To delete a referenced context file, first remove the file from every referencing prompt.

  1. Open the detail page for the file.

  2. Next to the file name, open the menu and select Delete.

    Result: The system removes the file from the FormSpace.

Manage prompts

Prompts contain the AI instructions that mobile users apply when they enhance their text on device. Each prompt has a unique name, written instructions, and optional references to context files. Form designers attach prompts to Text Area questions in the Form BuilderClosed The Form Builder is the tool that form designers use to create forms. In the Form Builder, accessed from the TrueContext Web Portal, form designers can add and edit pages, sections, and questions, as well as attach data destinations and configure the form's settings. to enable AI Text TransformationClosed AI Text Transformation uses AI prompts to refine a mobile user's text in a Text Area question. Mobile users select a prompt, review the AI output, and approve the result before it's saved with the form submission. AI Text Transformation appears as AI Enhancement in the Form Builder. On the mobile app, it appears as a sparkle icon on the formatting toolbar..

Create a prompt

Note:Make sure to Upload a context file you plan to reference before you create your prompt.

  1. In the Web Portal, go to Forms & Integrations > Prompts, and select create prompt.

    Result: The Create Prompt page opens.

    The Create Prompt page in the Web Portal, with all fields filled in for a sample prompt that polishes inspection text. Callouts identify the Test Prompt tab, the Prompt Name field, the Display Name field, the Prompt Instructions editor with its formatting toolbar, and the Context Files dropdown.

  2. Enter a Prompt Name. This is the internal identifier for the prompt in the Form Builder. PromptClosed A prompt contains the AI instructions that mobile users apply to enhance their text on device. Form designers write prompts in the Web Portal and attach them to Text Area questions to enable AI Text Transformation. Names must be unique within the FormSpace.

  3. Enter a Display Name of up to 50 characters. This is the default label that mobile users see for this prompt on their device, for example "Improve Text".

    Note:When a form designer attaches this prompt to a Text Area in the Form Builder, they can choose to keep the default or override it. Two prompts can share the same Display Name.

  4. Write instructions for the AI in the Prompt Instructions field.

    Note:
  5. To attach context files, go to the Context Files section and select up to five files from the dropdown.

    Note:The Context Files section appears only when at least one context file exists in the FormSpace.

  6. Test the prompt with example input before saving. For the steps, go to Test a prompt.

  7. Select Create.

    Result: The prompt's detail page opens. The new prompt also appears in the Prompts list.

From a prompt's detail page, you can edit, test, copy, or delete the prompt. The detail page also lists the context files the prompt references and the forms that reference the prompt.

Test a prompt

Test a prompt by running example input through it. The test panel returns the AI output. Use the output to refine the prompt instructions before saving.

  1. From the prompt editor or the prompt's detail page, select test prompt.

    Result: The test panel opens.

  2. Enter example input in the Example technician input field.

    The Test Prompt dialog with sample HVAC inspection text entered in the Example technician input field, and Test enhancement and Cancel buttons below. A callout reads 'Enter sample input text'.

  3. Select Test enhancement.

    Result: The AI output appears in the AI output field.

    The Test Prompt dialog after a successful test run, showing a 'The prompt ran successfully' banner and the AI's refined inspection report in the AI output field. A callout reads 'Refine your prompt based on the results'.

  4. To test the prompt with new input, select Back and enter new input.

    Tip:To see how changes to your prompt instructions affect the AI output, select Close, edit the prompt instructions, and start a new test.

Copy a prompt

Copy an existing prompt to use it as a starting point for a new one. You can copy to the current FormSpace or to a different FormSpace.

  1. In the Web Portal, go to the Prompts page.

  2. In the prompt's row, select Copy in the Actions column.

    Result: The Copy Prompt page opens. Target FormSpace pre-fills with the current FormSpace. Target Prompt Name pre-fills with the source prompt's name.

  3. To copy to a different FormSpace, select another FormSpace from the Target FormSpace dropdown.

  4. Edit the Target Prompt Name if needed. Prompt Names must be unique within the target FormSpace.

  5. If a Context File Conflict Strategy section appears, choose how to handle context files in the target FormSpace that share a name with files the source prompt references:

    • Overwrite replaces the target FormSpace's matching context file with the source version.

    • Repoint references the existing context file in the target FormSpace. This is the default.

    • Rename creates a new context file with a unique name in the target FormSpace.

  6. Select Copy.

    Result: The new prompt appears in the target FormSpace Prompts list.

Delete a prompt

Delete a prompt you no longer need from the FormSpace.

Warning:You can't delete a prompt that any form versions reference. To delete a referenced prompt, first delete every referencing form version. Deleting a form version permanently deletes all submissions made against that version.

  1. In the Web Portal, go to the Prompts page.

  2. In the prompt's row, select Delete in the Actions column.

    Result: If no form versions reference the prompt, the Delete Prompt confirmation dialog opens. If a form version references the prompt, the Web Portal shows the referencing forms, and the prompt isn't deleted.

  3. To confirm the deletion, select Permanently Delete Prompt.

    Result: The system removes the prompt from the FormSpace.

Related topics