Exposed Inputs

You can assign variables to your flow by adding query parameters to the URL of your interface. Each query parameter must be the id of the input to assign, replace hyphens for underscores.

You can assign values to inputs such as in-1 by adding the query parameter in_1

This leads to embeds with the following structure:

<iframe
  src="https://wwww.stack-ai.com/chat-assistant/orgId/token/flowId?in_1=example_text&in_2=second_text"
  width="350"
  height="600"
/>

The following interfaces support variable assignment:

  • Chat Interface
  • Form
  • Website Chatbot

As part of your workflows, you can specify the following values as inputs in the request body:

  • Input nodes translating in- to in_.
  • User ID for LLM Memory and Logs user_id

If the values for these inputs are not specified, the interface will use the values from the flow.