Package Information
Downloads: 170 weekly / 197 monthly
Latest Version: 1.0.6
Available Nodes
Documentation
n8n-nodes-storyteq
n8n community node for integrating with Storyteq Creative Automation Platform (CMP) API v2.
Overview
This node provides seamless integration between n8n workflows and Storyteq's Content Management Platform (CMP) API v2. It enables automated creative asset workflows, including asset management, metadata operations, and content distribution.
Features
- OAuth 2.0 Authentication: Automatic token acquisition and refresh with support for password and refresh token grant types
- 14 CMP v2 Operations: Comprehensive coverage of asset management operations
- Lazy Loading: Dynamic domain selection for improved user experience
- Credential Validation: Automatic credential testing on save
- TypeScript: Fully typed for better development experience
Installation
Install from npm (Recommended)
npm install n8n-nodes-storyteq
# or
pnpm add n8n-nodes-storyteq
Then restart your n8n instance.
Development Mode
For local development and testing:
git clone https://github.com/MikaelX/n8n-nodes-storyteq.git
cd n8n-nodes-storyteq
pnpm install
pnpm dev
This will:
- Build the node automatically
- Start n8n with your node loaded
- Watch for changes and rebuild automatically
- Open n8n in your browser at
http://localhost:5678
See INSTALLATION.md for more installation options.
Setting Up Credentials
- Go to Credentials in n8n
- Click Add Credential
- Search for "Storyteq API"
- Enter your credentials:
- CMP Tenant URL: Your Storyteq tenant URL (e.g.,
https://your-tenant.storyteq.com) - Client ID: Your OAuth 2.0 client ID
- Username: Your Storyteq username
- Password: Your Storyteq password
- Grant Type: Choose "Password" or "Refresh Token"
- Refresh Token: (Optional) Auto-populated when tokens are obtained
- CMP Tenant URL: Your Storyteq tenant URL (e.g.,
- Click Save - credentials are automatically tested on save
Note: Tokens are automatically managed. The node handles token acquisition and refresh transparently.
Available Operations
Asset Management
- Get Asset - Retrieve asset details by ID
- Get Asset Info - Get extended asset metadata
- List Assets - List assets with filters, pagination, and sorting
- Get Asset URL - Get signed download URL for asset
- Download Asset Preview - Download asset thumbnail (Icon 512, 256, 128, or 64)
- Get Asset Derivative Menu - List available derivatives/transforms for an asset
Asset Metadata
- Get Asset Fields - Retrieve custom field values for an asset
- Set Asset Fields - Update custom field values (JSON format)
- Get Asset Taxonomy - Get taxonomy information for an asset
- List Asset Narratives - List Description and Usage narratives
- Set Asset Narrative - Set Description or Usage narrative text
- Edit Asset Keywords - Add or remove keywords from assets
- List Asset Availability - List availability windows for an asset
Domain Management
- List User Domains - List available domains for the authenticated user
Usage Examples
Example 1: List Assets in a Domain
- Add a Storyteq node to your workflow
- Select List Assets operation
- Choose a Domain ID (dynamically loaded from your account)
- Configure filters:
- Phase: Active
- Listing Style: Page
- Listing Limit: 100
- Search: (optional) text search on asset name
- Available: true (only available assets)
- Execute to get paginated results
Example 2: Get Asset URL
- Add a Storyteq node
- Select Get Asset URL operation
- Enter the Asset ID
- Select Download Type: Link
- Execute to get a signed download URL
Example 3: Update Asset Metadata
- Add a Storyteq node
- Select Set Asset Fields operation
- Enter the Asset ID
- Provide Fields (JSON):
{ "fieldId1": "value1", "fieldId2": "value2" } - Execute to update the asset
Example 4: Set Asset Narrative
- Add a Storyteq node
- Select Set Asset Narrative operation
- Enter the Asset ID
- Choose Narrative Name: Description or Usage
- Enter the Value text
- Execute to update the narrative
API Documentation
For detailed API documentation, refer to the Storyteq CMP API v2 documentation.
Development
Prerequisites
- Node.js (v20 or higher)
- pnpm (or npm/yarn)
Setup
pnpm install
Development Commands
# Development mode with hot reload
pnpm dev
# Build for production
pnpm build
# Build in watch mode
pnpm build:watch
# Lint code
pnpm lint
pnpm lint:fix
# Type check
pnpm typecheck
Project Structure
n8n-nodes-storyteq/
├── src/
│ ├── credentials/
│ │ └── Storyteq.credentials.ts # Credential definition
│ └── nodes/
│ └── Storyteq/
│ ├── Storyteq.node.ts # Main node implementation
│ ├── GenericFunctions.ts # Shared API functions
│ ├── actions/ # Operation implementations
│ └── storyteq.svg # Node icon
├── dist/ # Compiled output
├── package.json
└── tsconfig.json
Troubleshooting
Credential Issues
- Ensure your CMP Tenant URL is the full URL (e.g.,
https://your-tenant.storyteq.com) - Verify your Client ID, Username, and Password are correct
- Check that your account has API access enabled
- See DEBUG.md for debugging credential issues
Node Not Appearing
- Ensure the package is installed:
npm list n8n-nodes-storyteq - Check that n8n was restarted after installation
- Verify the build completed:
pnpm build - Check n8n logs for errors
API Errors
- Verify your credentials are correct
- Check that the asset/domain IDs exist
- Ensure your account has permissions for the requested operations
- Review the API documentation for endpoint requirements
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE.md for details.
Support
- Issues: GitHub Issues
- Documentation: Storyteq API Documentation