Skip to main content

Global variables

Global variables let you store and reuse generic input values and credentials across your projects. You can use a global variable in any text input field that displays the icon.

NebulaAIFlow stores global variables in its internal database, and encrypts the values using a secret key.

Create a global variable

To create a new global variable, follow these steps.

  1. In the NebulaAIFlow UI, click your profile icon, and then select Settings.

  2. Click Global Variables.

  3. Click Add New.

  4. In the Create Variable dialog, enter a name for your variable in the Variable Name field.

  5. Optional: Select a Type for your global variable. The available types are Generic (default) and Credential.

    NebulaAIFlow encrypts both Generic and Credential type global variables. The difference is in how the variables are displayed in the UI.

    Global variables of the Generic type are displayed in a standard input field with no masking.

  6. Enter the Value for your global variable.

  7. Optional: Use the Apply To Fields menu to select one or more fields that you want NebulaAIFlow to automatically apply your global variable to. For example, if you select OpenAI API Key, NebulaAIFlow automatically applies the variable to any OpenAI API Key field.

  8. Click Save Variable.

You can now select your global variable from any text input field that displays the icon.

Edit a global variable

  1. In the NebulaAIFlow UI, click your profile icon, and then select Settings.

  2. Click Global Variables.

  3. Click on the global variable you want to edit.

  4. In the Update Variable dialog, you can edit the following fields: Variable Name, Value, and Apply To Fields.

  5. Click Update Variable.

Delete a global variable

warning

Deleting a global variable permanently deletes any references to it from your existing projects.

  1. In the NebulaAIFlow UI, click your profile icon, and then select Settings.

  2. Click Global Variables.

  3. Click the checkbox next to the global variable that you want to delete.

  4. Click the Trash icon.

The global variable, and any existing references to it, are deleted.

Default environment variables

NebulaAIFlow automatically detects and converts some environment variables into global variables of the type Credential, which are applied to the specific fields in components that require them. Currently, the following variables are supported:

  • ANTHROPIC_API_KEY
  • ASTRA_DB_API_ENDPOINT
  • ASTRA_DB_APPLICATION_TOKEN
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AZURE_OPENAI_API_DEPLOYMENT_NAME
  • AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME
  • AZURE_OPENAI_API_INSTANCE_NAME
  • AZURE_OPENAI_API_KEY
  • AZURE_OPENAI_API_VERSION
  • COHERE_API_KEY
  • COMPOSIO_API_KEY
  • GOOGLE_API_KEY
  • GROQ_API_KEY
  • HUGGINGFACEHUB_API_TOKEN
  • NOVITA_API_KEY
  • OPENAI_API_KEY
  • PINECONE_API_KEY
  • SAMBANOVA_API_KEY
  • SEARCHAPI_API_KEY
  • SERPAPI_API_KEY
  • TAVILY_API_KEY
  • UPSTASH_VECTOR_REST_TOKEN
  • UPSTASH_VECTOR_REST_URL
  • VECTARA_API_KEY
  • VECTARA_CORPUS_ID
  • VECTARA_CUSTOMER_ID

For information about other environment variables and their usage, see Environment Variables.