Basic Tutorial
Example 2: A Linear Multi-Step Workflow

Example 2: A Linear Multi-Step Workflow


eg2a

This workflow connects three blocks in a straight line using two edges:

  • abc, each with its own processing edge

🟢 Execution:

  1. The edge between a and b runs first.
  2. Once b receives its content, the second edge runs to process b into c.

This is the most common setup for step-by-step processing.

🟡 Demo:

1. Create a text block and type your question in block.

eg2b

2. Create an LLM edge to generate better query for Google search.

eg2c
  • system: You are a search query expert.
  • user: Given the user's question, generate a concise Google search query. Give me the query only. question : {{Question}}

3. Generate the query and create search edge.

eg2d

4. In search edge block, click Run .

eg2e
  • Result number: Set how many results you want to retrieve (default is 5)

5. You can find the result in new block.

eg2f