Actions37
- Index Spoken Words
- Get Transcript
- Search in a Video
- Generate Stream
- Index Scenes
- List Scene Indexes
- Get Scene Index
- Delete Scene Index
- Add Subtitle
- Generate Audio URL
- Generate Image URL
- Create Collection
- Download
- Get Collection
- Update Collection
- YouTube Search
- Delete Audio
- Delete Image
- Delete Video
- Delete Collection
- Dub Video
- Generate Image
- Generate Music
- Generate Sound Effect
- Generate Voice
- Generate Video
- Generate Text
- Get Audio
- Get Audios
- Get Image
- Get Images
- Get Video
- Get Videos
- Search in a Collection
- Upload
- Record Meeting
- Get Meeting
Overview
This node integrates with the VideoDB API to perform various operations related to video collections. Specifically, for the "Generate Text" operation under the default resource, it sends a prompt to generate text content based on a selected collection and model. This is useful in scenarios where you want to create descriptive or creative text outputs related to video collections, such as generating summaries, captions, or metadata descriptions.
Practical examples include:
- Automatically generating video descriptions for a given collection.
- Creating textual content for marketing or social media posts based on video themes.
- Producing JSON-formatted structured text data for further processing or integration.
Properties
| Name | Meaning |
|---|---|
| Collection Name or ID | Select a video collection from a list or specify its ID via expression. |
| Prompt | The input text prompt that guides the text generation process. |
| Model Name | Choose the AI model variant to use for text generation: Basic, Pro, or Ultra. |
| Response Type | Specify the format of the generated output: plain text or JSON structured data. |
Output
The node outputs an array containing one item per input. Each item has a json field holding the response from the VideoDB API's text generation endpoint. The structure of this JSON depends on the chosen response type:
- If "Text" is selected, the output will contain generated text content as a string.
- If "JSON" is selected, the output will contain structured JSON data representing the generated text in a more detailed or machine-readable format.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the VideoDB API.
- The base URL for the API defaults to
https://api.videodb.iobut can be customized via credentials. - The node uses HTTP requests with authentication to communicate with the VideoDB service.
Troubleshooting
Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Specifying a non-existent collection ID may result in errors or empty responses.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Authentication errors typically indicate invalid or expired API keys; verify and update credentials.
- "Collection not found" or similar errors suggest incorrect collection IDs; ensure the collection exists.
- Timeout or connection errors require checking network access and API availability.
Links and References
- VideoDB API Documentation (hypothetical link for reference)
- n8n Expressions Documentation – for using expressions in property fields