Skip to content

Conversation

@kothant534-cmyk
Copy link

@kothant534-cmyk kothant534-cmyk commented Dec 11, 2025

Added a Python example to demonstrate workflow template usage, including input handling and output structure.


Summary by cubic

Added a Python example to the workflow templates doc to show how to handle input items and produce output items, mirroring n8n’s Code node behavior. This helps users understand template logic with a simple, runnable snippet.

  • New Features
    • Added execute(input_data) function that reads task, outputs originalTask, modifiedTask (title-cased), and count (word count).
    • Handles empty inputs and invalid task strings.
    • Includes a small mock input for local testing.

Written for commit 5efc36a. Summary will update automatically on new commits.

Added a Python example to demonstrate workflow template usage, including input handling and output structure.
@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for n8n-docs ready!

Name Link
🔨 Latest commit 5efc36a
🔍 Latest deploy log https://app.netlify.com/projects/n8n-docs/deploys/693b4a15b0e8340008a3fd9e
😎 Deploy Preview https://deploy-preview-4005--n8n-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants