Automation library · AI assistants

GitHub repository AI agent with OpenAI

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 28 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

28 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Model 3Service 24

The steps in the order they run, from what starts it.

  1. 1When Executed by Another WorkflowExecute Workflow triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Agent MemoryMemory Buffer WindowModel
  4. 4Get RepositoryGithub ToolService
  5. 5Create FileGithub ToolService
  6. 6Get File ContentsGithub ToolService
  7. 7Edit FileGithub ToolService
  8. 8Delete FileGithub ToolService
  9. 9List FilesGithub ToolService
  10. 10List IssuesGithub ToolService
  11. 11Get IssueGithub ToolService
  12. 12Create IssueGithub ToolService
  13. 13Edit IssueGithub ToolService
  14. 14Comment on IssueGithub ToolService
  15. 15Lock IssueGithub ToolService
  16. 16List ReleasesGithub ToolService
  17. 17Get ReleaseGithub ToolService
  18. 18Create ReleaseGithub ToolService
  19. 19Update ReleaseGithub ToolService
  20. 20Delete ReleaseGithub ToolService
  21. 21Get ReviewGithub ToolService
  22. 22List ReviewsGithub ToolService
  23. 23Create ReviewGithub ToolService
  24. 24Update ReviewGithub ToolService
  25. 25Get User ReposGithub ToolService
  26. 26Invite UserGithub ToolService
  27. 27Get Org ReposGithub ToolService
  28. 28GitHub AgentAgentModel

How it's built

Starts on
An event in a connected app
Steps
28
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 28 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 28 steps before you point it at anything that matters.