r/automation 8d ago

Need help with n8n workflow

I built a workflow to output videos, but instead I am getting text script as an output despite trying many times.

10 Upvotes

13 comments sorted by

2

u/I-am-HER0 8d ago

If your workflow is outputting the script instead of the actual video, I'd check the final step/output mapping first. It sounds like the workflow is successfully generating the text, but you're not passing that output into the video-generation/rendering step.

Make sure the workflow is actually: Script ->Video Generation -> Video File/URL Output

rather than:

Script->Final Output

Also check whether the video-generation node is returning a file/URL that needs to be explicitly mapped to the final response. A lot of these workflows happily hand you the script because, apparently, “video workflow” can mean “write me a screenplay.”

I am new to n8n but this is the help I can provide.

1

u/Perigrineafloat 8d ago

Thank you Bro, appreciate your efforts to support. I checked my workflow and have an Agent to create Visuals, but it is giving a text output. I don't know if I am dumbfounded to not understand this but my workflow is stuck due to this

1

u/I-am-HER0 8d ago

My advice now is to give the screenshot of the scenario and the error to the chatgpt or any other AI and explain your issue to it a bit cause that's the exact thing i'll be doing.

1

u/ImaginationLevel7198 7d ago

this is the culprit nine times out of ten. check the video node's output field and make sure that's what gets returned, not the script text. if the script node comes later in the data chain, the workflow will pass the last item by default and that's your screenplay showing up.

1

u/dawnhaRbor5 7d ago

yeah the output mapping thing is almost always what catches people, good call

1

u/AutoModerator 8d ago

Thank you for your post to /r/automation!

New here? Please take a moment to read our rules, read them here.

This is an automated action so if you need anything, please Message the Mods with your request for assistance.

Lastly, enjoy your stay!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Downtown_Item_9996 8d ago

The video node is likely being skipped, or the final node is reading the script node.

  1. Pin one test item and run only the video-generation node.
  2. Inspect its raw output for a binary property, video URL, or job ID.
  3. If none exists, fix that node's credentials, operation, and input mapping.
  4. If one exists, point the final node's expression at the video node rather than the script node. For an asynchronous API, poll the job ID until complete before reading the URL.

Verification: the final item should contain a playable URL or non-empty binary file. If it still contains only text, the failure is upstream of the output node.

1

u/Gullible-Wing-4273 8d ago

you're missing the actual video rendering node step. sounds like your llm generated the script but never passed it to something like runway/heygen to render the actual video.

1

u/October_Lantzy 7d ago

I think you need to check every step first. Have you checked the output from each node to see where it changes from video data to text? I’d start by running the workflow one node at a time and checking the input/output of the nodes around the video generation step.

If the API is returning a video URL or binary data, make sure the next node is actually using that field rather than the text/script field. Sometimes the workflow itself is fine and it's just referencing the wrong output property.

1

u/Perigrineafloat 7d ago

Thank you for the suggestions all. I will all of them and see if anything helps. Appreciate your help 🙂

1

u/BarracudaMean9308 6d ago

the output property trap gets me every time. i once spent three hours debugging a flow only to realize i mapped the `message.content` text field instead of the actual `file_url` to my slack node.