Set credentials dynamically using expressions
How it works This workflow shows how to set credentials dynamically using expressions. It accepts an API key via a form, then uses it in the NASA node to aut...
🔌 Nodes & Integrations Used (2)
📖 Implementation & Setup Guide
How it works
This workflow shows how to set credentials dynamically using expressions. It accepts an API key via a form, then uses it in the NASA node to authenticate a request.
Setup steps
First, set up your NASA credential:
- Create a new NASA credential.
- Hover over **API Key**.
- Toggle **Expression** on.
- In the **API Key** field, enter `{{ $json["Enter your NASA API key"] }}`.
Then, test the workflow:
- Get an [API key from NASA](https://api.nasa.gov/)
- Select **Test workflow**
- Enter your key using the form.
- The workflow runs and sends you to the NASA picture of the day.
For more information on expressions, refer to [n8n documentation | Expressions](https://docs.n8n.io/code/expressions/).
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Set credentials dynamically using expressions.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related DevOps & GitHub Workflows
View All in DevOps & GitHub →Generate Google Doc Proposal
Production-ready n8n automation template for Generate Google Doc Proposal built by AhiXLight. Seamlessly connects Execute Workflow Trigger, Google Drive, OpenAI with 7 configured nodes.
Add a new lead to Pipedrive once GitHub repo is forked
This workflow automatically adds a new lead to Pipedrive once someone forks your GitHub repository. Prerequisites - Pipedrive account and Pipedrive credentia...
Add the affiliate to a program automatically
This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program. !workflow-screenshot Tapfiliate node: This node allows you...
Add a note to Pipedrive s contact once PR is added on GitHub
This workflow automatically adds a note of the PR from GitHub to the Pipedrive contact if their GitHub email matches a Person in Pipedrive. Prerequisites - P...