Lucidchart’s AI Prompt Flow extension enables everyone to experiment with LLMs (large language models) and improve their AI prompts, regardless of technical expertise. With the extension, you can build models of your AI flow with multiple user inputs, using sample interactions to help train responses. After you have created your model, share the results using Lucidchart’s sharing and collaboration capabilities.
Plan availability: Free, Individual, Team, and Enterprise.
- Not available on FedRAMP accounts.
- Read the Lucid Plans article for more information about what is available on your account or the Upgrade your Lucid account article for instructions to upgrade.
Note: Lucid’s AI capabilities are currently available to all users but may be subject to a paid subscription model in the future.
Currently, our AI capabilities support English only.
Install AI Prompt Flow
Follow these steps to install the AI Prompt Flow extension:
- Log in to lucid.app.
- Click Integrations from the bottom-left of the navigation menu.
- Search “AI Prompt Flow” using the search bar at the top of the page.
- Click the AI Prompt Flow tile.
- Click Connect from the top-right of the page.
Set up the extension
After installing the extension, connect your AI model by following these steps:
- Open a Lucidchart document.
- Click
the AI Prompt Flow icon from the Primary Toolbar on the far left-hand side.
- Select Settings at the top of the panel.
- Click Connect model.
- Enter a name for the model.
- Select a service type from the dropdown.
- Enter the Endpoint URL and API key for your GPT deployment.
- Enter the model you are using.
- Click Save.
Below is an example of the connection settings for Open AI’s GPT 3.5 Turbo model. Depending on the service type and model you use, your settings may be different.
Note: In order to use AI Prompt Flow, you may need to purchase API credit through OpenAI or Azure.
Parts of an AI model
Before configuring your first model, read through each of the sections below to acquaint yourself with the various parts you can include.
System prompt
The system prompt contains instructions about how the AI model is intended to behave. Consider including the following details:
- The purpose of the AI workflow
- The format you expect to receive
- Any limitations, parameters, or context that help guide the output
User prompt
The user prompt is sample text that an end user would send through the AI flow.
Global variable
A global variable (or prompt segment) is a reusable piece of a prompt. These are useful if you have information you want to include in multiple system or user prompts—you can update it in one central location and it will be reflected anywhere it is referenced. You do not need to connect the global variable to the individual prompts that use it. To reference a global variable in a system or user prompt, use this format: ${PromptSegmentName}.
User-provided variables
User-provided variables allow you to create flexible prompts that take values from the end user. To reference the user variables in a user prompt, use this format: ${UserVariableName}.
Sample interactions
Sample interactions are a short list of example user prompts and the expected AI responses for them. If you connect the sample interactions table to a system prompt, the examples will be used to inform the AI’s output.
Output
The output is what you can expect the AI to produce based on the parameters you have provided. This is generated by the AI Prompt Flow extension.
The example below shows each of these parts and how they interact with each other on the canvas.
Configure and execute an AI prompt
Configure a prompt
To configure your AI model:
- Click
the AI Prompt Flow icon from the Primary Toolbar on the far left-hand side of a Lucidchart document.
- Drag a System Prompt shape onto the canvas.
- Type your System Prompt parameters.
- Drag one or more User Prompt shapes onto the canvas.
- Type your sample user input.
- For added context on your model, drag a Prompt Segment, User Variables, or Sample Interactions onto the canvas. These are not required to execute a prompt.
Execute a prompt
Once you have configured your model, follow these steps to execute an AI prompt:
- Select a System Prompt or User Prompt shape on the canvas.
- Open the AI Prompt Flow panel from the top-right corner of the workspace.
- Click Execute prompt.
A new shape will appear on the canvas titled “Output”.
FAQ
How can I reference a prior response in the model?
You can use the response of one model as part of the prompt for a subsequent model. Connect an Output shape to a System Prompt and then use ${PriorResponse} in the System Prompt shape or User Prompt shape.
Can I use AI Prompt Flow to create flowcharts?
Yes. If prompted, AI Prompt Flow can produce Mermaid code as an output. Mermaid is a flowchart and diagram visualization tool based on JavaScript. If the model output is in Mermaid code, Lucidchart will automatically generate the corresponding diagram.
How will you use my data?
Lucid is dedicated to upholding its commitments to you regarding the privacy, security, and safety of your data, including with any AI features. Your use of these features is subject to either our Terms of Service or your MSA with Lucid (as applicable) and Lucid's Supplemental AI Terms. Our current AI features are powered by Microsoft Azure OpenAI Service.
We do not use customer data to train models in a way that breaches the confidentiality of our customers' data. We do not use your prompt inputs to generate content for other customers based on your data. We do store documents for your use and any content on those documents are stored for your use as well.
As we expand our AI capabilities we will continue to do so in a way that does not breach the confidentiality of our customers' data.
Resources
To learn more about this feature, explore the additional resources below. These resources are available in English only.
Blog
Using AI throughout a project workflow: 5 common challenges solved by AI
Community post
Share your AI Prompt Flow models!
Give feedback on this article
Have feedback about this article? Tell us about your experience here.