Set credentials dynamically using expressions — n8n Workflow

Low complexity Trigger3 nodes🏷️ Miscellaneous👁 3,642 viewsby Deborah

Overview

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 Select Test workflow Enter your key using the form. The workflow runs and se

Nodes used

NASA

Workflow Preview

This workflow shows how to set credentials dy
First, set up your NASA credential:
1. Create a new NASA credential.
1. Hover over API Key.
1. Toggle Expression o
User submits an API key using the form
The workflow passes the key to the NASA node.
The Respond to Webhook node controls the form
N
n8n Form Trigger
NASA
R
Respond to Webhook
3 nodes2 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 3 nodes, connecting formtrigger, nasa, respondtowebhook.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (3)

NA

NASA

nasa

#1

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded set-credentials-dynamically-using-expressions file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Set credentials dynamically using expressions", "nodes": [...], ...}

Integrations

formtriggernasarespondtowebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes3
Complexitylow
Triggertrigger
Views3,642

Created by

Deborah

Deborah

@deborah

Tags

formtriggernasarespondtowebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows