Let Vira build a workflow

You will describe a job in one sentence and let Vira build it on the canvas: a summary of yesterday's messages, emailed to you every weekday morning. Then you will check her work, test it and switch it on.

10 min8 stepsBeginner

It builds on the messages table from Build a workflow on the canvas, but any table works.

Create an empty workflow

Open Studio → Create → Workflow, name it Morning summary, pick a project, and create it. The canvas opens with a Flow Start node.

Ask Vira

Click Ask Vira at the bottom left of the canvas, and describe the job the way you would explain it to a colleague:

"Every weekday at 8:00, read the rows of the messages table added in the last 24 hours, summarise them in a few bullet points, and email the summary to me at owner@example.com."

Tips for a good request:

  • Say when it runs: "every weekday at 8:00", "every 15 minutes", "when my website calls it".
  • Point at your data: type @ and pick the messages table, so Vira uses exactly that one.
  • Say what should come out: an email, a row in a table, a message in Slack, an answer to your app.

Pick the model under the message box, and send.

Watch the canvas fill in

Vira places the nodes and connects them in front of you. For this job you will typically see:

Flow Start Mon–Fri, 8:00 Table last 24 hours Model write the summary Mail send to you
Four nodes: a schedule, a read, an AI summary and an email.
  • Flow Start set to a Schedule trigger, weekly, Monday to Friday, 8:00
  • a Table node that finds the rows created since yesterday
  • a Model node that turns them into bullet points
  • a Mail node that sends the result

Vira explains in the chat what she built and why.

Add the secrets she asks for

Sending email needs your mail account's login, and Ubex never puts passwords inside a workflow. Vira tells you which secrets to add, such as SMTP_HOST, SMTP_USER and SMTP_PASSWORD, and the Mail node reads them from the Vault.

Open Vault → Add secret, and add each one with its Key and Value. Many email providers, Gmail among them, need an app password here, not your normal one.

Check each node

Click any node to open its settings and see exactly what Vira set. Worth checking here:

  • Flow Start: the time and the days. Times follow your workspace's time zone, set in Settings → Locale.
  • Table: that it reads the right table, with the right filter.
  • Model: the instructions, such as how long the summary should be.
  • Mail: the recipient and the subject.

You can change any setting by hand. Nothing Vira builds is locked.

Test it

Run the workflow from the editor without waiting for 8:00. Then open the run in Activity: its Execution Logs show every node's input and output, so you can see the rows that were read, the summary that was written, and whether the email went out.

If the table is empty, add a test row in My Data first.

Change it with words

Keep talking to Vira in the same panel. She works on the workflow that is open:

  • "Only include messages whose status is new"
  • "If there are no new messages, don't send anything"
  • "Also post the summary to our Slack channel"

Every change appears on the canvas. History keeps the earlier versions, so you can always go back.

Switch it on

Click Publish to put your version live, and make sure Active is on. From now on it runs every weekday at 8:00 by itself, and each run appears in Activity.

Next: create an agent that answers questions in a chat.

Finished all the steps?

0 of 8 steps done

Ready to build?

Open Ubex in another tab and follow along: every step matches what you see in the app.

Open Ubex