Fetch Nodes
The Fetch Node allows you to bring external data into your Dal Nulla project. It acts like a standard HTTP client, enabling you to integrate real-time information into your creative workflows.
How it Works
The node performs an HTTP request to a specified URL and makes the response body (text or JSON) available to connected nodes.
Configuration
- URL: Enter the API endpoint you want to call (e.g.,
https://api.weather.gov/gridpoints/TOP/31,80/forecast). - Method:
GET: For retrieving data (most common).POST: For sending data to a server.
- Headers: A JSON object defining request headers (e.g.,
{ "Authorization": "Bearer token" }). - Body: A JSON object for the request body (only for POST requests).
Use Cases
1. Dynamic Prompts
Fetch real-time data to influence your generation prompts.
- Example: Fetch today’s weather forecast and pipe it into a Text Node to generate a “Weather Report” script that matches reality.
2. External Content Integration
Pull text from your own CMS or database.
- Example: Fetch a blog post title from your website API and use it to generate a matching thumbnail image.
Outputs
- Result: The raw text response from the server. If the response is JSON, you will typically connect this to a JSON Parser Node to extract specific fields.