Automation library · Scheduling

Build an AI powered phone agent with Retell

Started by another system calling it, and works across Google Calendar, Google Drive, Qdrant and Telegram. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 29 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

29 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 5Model 16Logic 2Service 6

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3n8n_rag_functionWebhookStarts it
  4. 4Embeddings OpenAI2Embeddings Open AiModel
  5. 5OpenAI Chat Model2Lm Chat Open AiModel
  6. 6OpenAI Chat Model1Lm Chat Open AiModel
  7. 7OpenAI Chat Model3Lm Chat Open AiModel
  8. 8Structured Output Parser1Output Parser StructuredModel
  9. 9n8n_callWebhookStarts it
  10. 10n8n_check_availableWebhookStarts it
  11. 11When clicking ‘Test workflow’Manual triggerStarts it
  12. 12Embeddings OpenAIEmbeddings Open AiModel
  13. 13Token SplitterText Splitter Token SplitterModel
  14. 14Extract key pointsChain LlmModel
  15. 15Retrive AgentAgentModel
  16. 16Retrive Qdrant Vector StoreVector Store QdrantModel
  17. 17RAGTool Vector StoreModel
  18. 18Concert start dateChain LlmModel
  19. 19FilterFilterLogic
  20. 20Create collectionHttp RequestService
  21. 21Refresh collectionHttp RequestService
  22. 22Qdrant Vector StoreVector Store QdrantModel
  23. 23Default Data LoaderDocument Default Data LoaderModel
  24. 24TelegramTelegramService
  25. 25Respond to WebhookRespond To WebhookStarts it
  26. 26Google CalendarGoogle CalendarService
  27. 27Set call fieldsSetLogic
  28. 28Get folderGoogle DriveService
  29. 29Download FilesGoogle DriveService

How it's built

Starts on
Another system calling it
Steps
29
Size
Large: read it before trusting it with anything live
Connects to
Google Calendar, Google Drive, Qdrant, Telegram
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, plus your own Google Calendar, Google Drive, Qdrant and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

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 29 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 29 steps before you point it at anything that matters.