Videos

Invoke a Process

How to call a Kognitos process from a playground or from another process — including how to pass input variables.

What you'll learn

A short tutorial on the invoke keyword in Kognitos — how to call one published process from a playground, or from another draft or published process, with or without input variables.

How invoke works

  • Basic syntax: write invoke <process name> on its own line. In the tutorial, the called process is named create a timestamp.
  • Passing input variables: add the keyword with on the next line, indent it, and provide the variable. Multiple inputs are written as a comma-separated list under with.
  • Fire-and-forget: invoke kicks off the called process and returns immediately — it does not block waiting for a return value. The tutorial highlights how quickly the parent process completes when it uses invoke.
  • Verifying the run: clicking into the invoked process shows its individual run history, and the run counter on the called process increments (in the demo, from six runs to seven).
  • From a published process: once a process is promoted and published, the same invoke works inside any other published or draft process, so common building blocks (like a timestamp generator) can be reused everywhere.

When to use invoke

Invoke is the right tool when you want to compose smaller, reusable processes into larger automations without duplicating logic — for example, calling a standard timestamping or notification routine from inside a 3-way match or invoice automation.

Questions answered in this video

How do I call a Kognitos process from another process?
Write a single line: invoke <process name>. The tutorial demonstrates this by invoking a process called create a timestamp from both a playground and from another published process.
How do I pass input variables to the invoked process?
Add the keyword with on the next line, indent it, and supply the variable. If there are multiple inputs, list them as a comma-separated list under with.
Does invoke wait for the called process to finish?
No. The tutorial calls out that invoke is fire-and-forget — Kognitos kicks off the called process and returns immediately, which is why the parent process completes almost instantly in the demo.
How can I confirm the invoked process actually ran?
Click into the invoked process in the Kognitos UI. You'll see its run history grow (the demo shows the counter go from six runs to seven), and you can inspect the individual run just like any other process.
END

Ready to see it in action?

Book a personalized demo and see Kognitos automate your processes.

Book a Demo
Or try it free →