mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Feature/Add ability to get vars from text input (#2986)
add ability to get vars from text input
This commit is contained in:
@@ -27,7 +27,9 @@ const HowToUseVariablesDialog = ({ show, onCancel }) => {
|
||||
How To Use Variables
|
||||
</DialogTitle>
|
||||
<DialogContent>
|
||||
<p style={{ marginBottom: '10px' }}>Variables can be used in Custom Tool Function with the $ prefix.</p>
|
||||
<p style={{ marginBottom: '10px' }}>
|
||||
Variables can be used in Custom Tool, Custom Function, Custom Loader, If Else Function with the $ prefix.
|
||||
</p>
|
||||
<CodeEditor
|
||||
disabled={true}
|
||||
value={`$vars.<variable-name>`}
|
||||
@@ -36,6 +38,17 @@ const HowToUseVariablesDialog = ({ show, onCancel }) => {
|
||||
lang={'js'}
|
||||
basicSetup={{ highlightActiveLine: false, highlightActiveLineGutter: false }}
|
||||
/>
|
||||
<p style={{ marginBottom: '10px' }}>
|
||||
Variables can also be used in Text Field parameter of any node. For example, in System Message of Agent:
|
||||
</p>
|
||||
<CodeEditor
|
||||
disabled={true}
|
||||
value={`You are a {{$vars.personality}} AI assistant`}
|
||||
height={'50px'}
|
||||
theme={'dark'}
|
||||
lang={'js'}
|
||||
basicSetup={{ highlightActiveLine: false, highlightActiveLineGutter: false }}
|
||||
/>
|
||||
<p style={{ marginBottom: '10px' }}>
|
||||
If variable type is Static, the value will be retrieved as it is. If variable type is Runtime, the value will be
|
||||
retrieved from .env file.
|
||||
|
||||
Reference in New Issue
Block a user