The flow
Starts it 1Logic 13Service 8
The steps in the order they run, from what starts it.
- 1Schedule TriggerSchedule triggerStarts it
- 2Workflow ConfigurationSetLogic
- 3Get articles from shopifyHttp RequestService
- 4Clean & Prepare TextCodeLogic
- 5Loop Over ItemsSplit In BatchesLogic
- 6Calculate similaritiesCodeLogic
- 7Set article fieldsSetLogic
- 8Upsert article_relationsData TableService
- 9OpenAI Get EmbeddingsHttp RequestService
- 10Top 3 related articlesCodeLogic
- 11Upsert articlesData TableService
- 12Loop for source articlesSplit In BatchesLogic
- 13Get previous related_articlesData TableService
- 14Check if article already has relatedIfLogic
- 15Check if related articles are the sameIfLogic
- 16Upsert relationsData TableService
- 17No need to change the related sectionNo OpLogic
- 18Split Related IDsCodeLogic
- 19Get related article detailsData TableService
- 20Prepare HTML for related articlesCodeLogic
- 21Insert Related in ArticleCodeLogic
- 22Update article with relatedHttp RequestService