The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Gitflow: 1 - Task Intake & Issue Creation",
"nodes": [
{
"parameters": {
"options": {}
},
"name": "Start",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
250,
300
],
"ui": {
"description": "Manually trigger the workflow with a task description.",
"fields": {
"string": [
{
"displayName": "Task Description",
"name": "task_description",
"type": "string",
"default": "",
"placeholder": "e.g., Add a new endpoint /api/users"
}
]
}
}
},
{
"parameters": {
"prompt": "You are a senior project manager. Based on the following task, create a structured GitHub issue. The issue should include a clear description, a list of acceptance criteria, and a high-level technical plan. Format the output as `Title: [Your Title]\n\nBody: [Your Markdown Body]`.",
"model": "gemini-pro",
"text": "={{ $json.task_description }}"
},
"name": "AI Agent: Create Issue Content",
"type": "n8n-nodes-base.aiAgent",
"typeVersion": 1,
"position": [
500,
300
],
"credentials": {
"geminiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"owner": "eivindingebrigtsen",
"repository": "agent",
"title": "={{ $('Function: Parse AI Output').item.json.title }}",
"body": "={{ $('Function: Parse AI Output').item.json.body }}"
},
"name": "GitHub: Create Issue",
"type": "n8n-nodes-base.github",
"typeVersion": 3,
"position": [
950,
300
],
"credentials": {
"githubApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsCode": "const output = $('AI Agent: Create Issue Content').item.json.output;\nconst titleMatch = output.match(/Title: (.*)/);\nconst bodyMatch = output.match(/Body: ((.|\n)*)/);\n\nconst title = titleMatch ? titleMatch[1] : 'AI Failed to Generate Title';\nconst body = bodyMatch ? bodyMatch[1] : 'AI Failed to Generate Body';\n\nreturn { title, body };"
},
"name": "Function: Parse AI Output",
"type": "n8n-nodes-base.function",
"typeVersion": 2,
"position": [
720,
300
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "AI Agent: Create Issue Content",
"type": "main"
}
]
]
},
"AI Agent: Create Issue Content": {
"main": [
[
{
"node": "Function: Parse AI Output",
"type": "main"
}
]
]
},
"Function: Parse AI Output": {
"main": [
[
{
"node": "GitHub: Create Issue",
"type": "main"
}
]
]
}
},
"active": false,
"settings": {},
"id": "1"
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
geminiApigithubApi
About this workflow
Gitflow: 1 - Task Intake & Issue Creation. Uses manualTrigger, aiAgent, github. Event-driven trigger; 4 nodes.
Source: https://github.com/eivindingebrigtsen/agent/blob/e0b57ed02a522ed6adc2b1c58c5feadf427d4a80/.n8n/workflow-1-issue-creation.json — original creator credit. Request a take-down →