Creating Custom Prompts/Actions by Recording Changes
The
Record button in the top-left corner of the view allows you to create new AI
actions. It opens the Record examples for instructions dialog box
where you can provide a set of instructions that are intended for the AI to follow. Then,
after clicking the Start recording button at the bottom of the dialog
box, you can record a collection of examples in the editing area that will help the AI
better follow the given instructions. The examples are recorded from the changes made in the
open editors.
After providing examples, you need to click the
Record button
again to stop the recording. You will then have the opportunity to save the final result as
either a Positron action or as a favorite chat prompt.
- Click the
Record button. - In the Record examples for instructions dialog box, enter some instructions like: You are a technical writer. Add DITA markup to menu cascades.
- Click Start recording.
- Open a DITA topic that has a menu cascade without markup (for example:
File > Export). - Edit the topic and add markup, transforming it to:
<menucascade> <uicontrol>File</uicontrol> <uicontrol>Export</uicontrol> </menucascade> - Click the
Record button again to stop the recording. The
system generates the following instructions with
examples:You are a technical writer. Add DITA markup to a menu cascades. ### Input: <p>File > Export</p> Output: <p><menucascade><uicontrol>File</uicontrol> <uicontrol>Export</uicontrol></menucascade></p> Input: ${selection} Output: - In the resulting dialog box, save the final result as either a Positron action or as a favorite chat prompt.
Record examples for instructions button to prevent
its use by setting a custom option.