Actions56
- Health Actions
- Project Actions
- Score Actions
- Characters Actions
- Environments Actions
- Scenes Actions
- Visuals Actions
- Visual Voiceover Actions
- Visual Image Actions
- Visual Video Actions
- Visual Sound Actions
- Video Actions
Overview
This node allows users to create a new environment within the AdBlast platform by interacting with its API. It is useful for automating environment setup in projects, especially when managing multiple environments programmatically. For example, a marketing team could use this node to quickly spin up new testing environments with specific prompts and configurations without manual intervention.
Typical scenarios include:
- Creating isolated environments for different campaigns or projects.
- Automating environment creation as part of a CI/CD pipeline.
- Managing environment metadata such as descriptions and processing states dynamically.
Properties
| Name | Meaning |
|---|---|
| Authentication Method | Choose between using saved API credentials or entering an API key dynamically via expressions. |
| AdBlast Base URL | The base URL for the AdBlast API (required if using dynamic API key authentication). |
| API Key | The API key for authenticating requests (required if using dynamic API key authentication). |
| Project Id | The unique identifier of the project under which the environment will be created. |
| Id | A unique valid UUID representing the environment's ID. |
| Prompt | A descriptive prompt or description for the environment. |
| Processing | Boolean flag indicating whether the environment image is currently generating. |
Output
The node outputs JSON data representing the newly created environment object returned from the AdBlast API. This typically includes all properties sent during creation along with any additional metadata assigned by the server, such as timestamps or status fields.
If the API returns binary data (e.g., images), it would be included in the binary output field, but based on the provided code and properties, the primary output is JSON.
Dependencies
- Requires access to the AdBlast API endpoint.
- Needs either saved API credentials or a dynamically provided API key.
- The base URL for the API must be correctly set, especially when using dynamic authentication.
- Proper permissions on the AdBlast API to create environments within the specified project.
Troubleshooting
- Authentication errors: Ensure that the API key or saved credentials are valid and have sufficient permissions.
- Invalid UUID for Environment Id: The
Idproperty must be a valid UUID; otherwise, the API may reject the request. - Missing required fields: All required properties (
Project Id,Id,Prompt) must be provided; missing these will cause errors. - Incorrect Base URL: When using dynamic authentication, verify that the base URL is correct and reachable.
- API rate limits or network issues: These can cause failures; check connectivity and API usage quotas.
Links and References
- AdBlast API Documentation (assumed base URL)
- General n8n documentation on Creating Custom Nodes
- UUID format reference: https://tools.ietf.org/html/rfc4122