Scade knowledge base
  • What is Scade?
  • Quick start
    • How to create a flow
  • Build a flow
    • What is Flow?
    • How to create a flow
    • What is a Node
    • What are the Start and End Nodes?
    • How to add nodes (AIs and tools) to your flow
    • Top Nodes settings
      • Large language models
      • Image generation
      • Transcribe audio to text (Whisper)
      • Image background removal options
    • How to Connect Nodes
    • How to Use Expression Editor
    • How to Copy Generated Images or Text
    • What is the 'View Source' of a Node
    • How to add python code
  • Flow examples
    • Building a flow: create promo cards of a product
    • Building a flow: a virtual AI editorial office
    • Building a flow: video transcription and summarization
    • 5 minute challenge: compare different LLMs
    • 5 minute challenge: upscale and colorize photos
    • 5 minute challenge: summarize audio
  • Publish
    • Run flows via API
  • Pricing and credits
Powered by GitBook
On this page
  1. Build a flow

How to Use Expression Editor

1. Opening the Expression Editor

  • Access the Expression Editor for any node via its settings. Change the input field format to "expression" in the settings. Clicking the blue field will open the Expression Editor.

  • In the ChatGPT node within Messages, click the `#` symbol in the lower Message field. This will open the Expression Editor to retrieve data from other nodes.

2. Adding a Variable in the Expression Editor

  1. On the left, you’ll see a list of nodes, and on the right, an empty expression field.

  2. Click the required node in the list to see its output data.

  3. Variables can be multi-level structures, depending on the tool you are interacting with. For instance, the Whisper Diarisation tool that transcribes an audio file and splits it among speakers, displays a complex data structure. It’s first level includes fields like language and speaker count, followed by a collapsible array of segments containing timecodes, speaker info, speech text, and individual word objects.

  4. To add a variable, find it in the list and drag it to the expression field in the Expression Editor. Data is transferred in double curly brackets format, usually like: `{{context["Node ID"]["variable name"]}}`. For instance, to get the task from a start node: `{{context["7rwO-start"]["task"]}}`

Dragging complex structures into the Expression Editor will show all nested levels.

3. If the Required Variable is Not Listed:

  • Variables appear in the list only after the node is executed.

  • If you add a new field to a node, execute the node to update the fields list in the Expression Editor. The new field value will then be available in the list.

PreviousHow to Connect NodesNextHow to Copy Generated Images or Text

Last updated 10 months ago