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.
-
In the NebulaAIFlow UI, click your profile icon, and then select Settings.
-
Click Global Variables.
-
Click Add New.
-
In the Create Variable dialog, enter a name for your variable in the Variable Name field.
-
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.
-
Enter the Value for your global variable.
-
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.
-
Click Save Variable.
You can now select your global variable from any text input field that displays the icon.
Edit a global variable
-
In the NebulaAIFlow UI, click your profile icon, and then select Settings.
-
Click Global Variables.
-
Click on the global variable you want to edit.
-
In the Update Variable dialog, you can edit the following fields: Variable Name, Value, and Apply To Fields.
-
Click Update Variable.
Delete a global variable
Deleting a global variable permanently deletes any references to it from your existing projects.
-
In the NebulaAIFlow UI, click your profile icon, and then select Settings.
-
Click Global Variables.
-
Click the checkbox next to the global variable that you want to delete.
-
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.