The flow
Starts it 1Model 5Logic 16Service 14
The steps in the order they run, from what starts it.
- 1Intercom Webhook TriggerWebhookStarts it
- 2OpenAI Chat ModelLm Chat Open AiModel
- 3Simple MemoryMemory Buffer WindowModel
- 4Embeddings OpenAIEmbeddings Open AiModel
- 5Get a leadIntercomService
- 6Get a lead1IntercomService
- 7Get a lead2IntercomService
- 8Get a lead3IntercomService
- 9Prevents from running when event is 'bot reply'FilterLogic
- 10AI Agent1AgentModel
- 11Pinecone Vector StoreVector Store PineconeModel
- 12Tokens and IdsSetLogic
- 13[Intercom] ReplyHttp RequestService
- 14[Discord] ReplyHttp RequestService
- 15Whether it is a new conversation or notIfLogic
- 16[Discord] Create ThreadHttp RequestService
- 17[Intercom] GET conversationHttp RequestService
- 18[Discord] Type first message into the threadHttp RequestService
- 19Split OutSplit OutLogic
- 20[Intercom] Store the thread ID as a 'note'Http RequestService
- 21Isolating all textual messages contentsFilterLogic
- 22Isolating the 'note' to get the thread ID storedFilterLogic
- 23new conversation prepared dataSetLogic
- 24conversation -> JSONSetLogic
- 25conversation info -> JSONSetLogic
- 26sorting data (cuz we join 2 different flows here)SetLogic
- 27Aggregate1AggregateLogic
- 28conversation prepared dataMergeLogic
- 29preparing data for Agentic useSetLogic
- 30SwitchSwitchLogic
- 31[Discord] User messageHttp RequestService
- 32If2IfLogic
- 33[Discord] Human admin reply Http RequestService
- 34not going through if bot deactivatedFilterLogic
- 35[Discord] Notify bot re-activation notificationHttp RequestService
- 36[Discord] Notify bot de-activationHttp RequestService