Smart prompting

You can use smart prompting to build your prompts and format your messages, combining and reusing content from other nodes.

Basics

Smart prompting uses Liquid syntax, which allows you to use content from other nodes using a simple {{node-id}} syntax.

This makes it easy to reuse content from other nodes in your chain, making your chain more readable. When you are inside a content node or an AI model node text field, simply type @, = or { to trigger the auto-complete menu.

text-node-1 output

I am content from the first node!

text-node-2 template

This is what the first node says: {{ text-node-1 }}

text-node-2 output

This is what the first node says: I am content from the first node!

About Liquid

Liquid is an open-source template language created by Shopify. Liquid uses a combination of objects, tags, and filters inside template files to display dynamic content. You can already get going nicely by using the basic {{ node-id }} logic, but you can also do a lot more with Liquid.