I’m stuck trying to set up a sub-workflow that receives data from an AI agent to create Todoist tasks.
Setup:
- Main workflow: AI agent with simple prompt “Please create a todoist task saying to do X”
- Sub-workflow: Workflow Input Trigger + Todoist Create Task node
- Using “Call n8n workflow” tool to connect them
Problem:
- Can’t figure out how to access the incoming data in the sub-workflow
- Not sure what data structure comes from the AI agent
- Tried
{{ $json.input }}
but getting errors - Not even sure if Workflow Input Trigger is the right choice
What’s the correct way to set this up? How do I reference the incoming data in the Todoist node? I am losing my mind with this…
n8n version: 1.74.0 (Self-Hosted)