Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1.  
  2. {
  3. "name": "Entra-365-Search-Chatbot-Orchestration",
  4. "nodes": [
  5. {
  6. "parameters": {
  7. "trigger": "onNewEmail",
  8. "authentication": "oAuth2",
  9. "folder": "inbox"
  10. },
  11. "name": "Microsoft Outlook Trigger",
  12. "type": "n8n-nodes-base.microsoftOutlook",
  13. "typeVersion": 1,
  14. "position": [250, 300],
  15. "credentials": {
  16. "microsoftOutlookOAuth2": "Your Microsoft Graph Credential"
  17. }
  18. },
  19. {
  20. "parameters": {
  21. "resource": "mail",
  22. "operation": "get",
  23. "userId": "={{$node['Microsoft Outlook Trigger'].json['from']['emailAddress']['address']}}",
  24. "messageId": "={{$node['Microsoft Outlook Trigger'].json['id']}}"
  25. },
  26. "name": "Get Email Details",
  27. "type": "n8n-nodes-base.microsoftGraph",
  28. "typeVersion": 1,
  29. "position": [450, 300],
  30. "credentials": {
  31. "microsoftGraphOAuth2": "Your Microsoft Graph Credential"
  32. }
  33. },
  34. {
  35. "parameters": {
  36. "method": "GET",
  37. "url": "https://{your_search_service}.search.windows.net/indexes/{your_index_name}/docs?api-version=2023-11-01&search={{$node['Get Email Details'].json['subject']}}&$top=5",
  38. "headers": {
  39. "api-key": "{your_search_api_key}",
  40. "Content-Type": "application/json"
  41. }
  42. },
  43. "name": "Azure AI Search",
  44. "type": "n8n-nodes-base.httpRequest",
  45. "typeVersion": 1,
  46. "position": [650, 300]
  47. },
  48. {
  49. "parameters": {
  50. "method": "POST",
  51. "url": "https://{your_bot_service}.azurewebsites.net/api/messages",
  52. "headers": {
  53. "Authorization": "Bearer {your_bot_token}",
  54. "Content-Type": "application/json"
  55. },
  56. "body": {
  57. "emailSubject": "={{$node['Get Email Details'].json['subject']}}",
  58. "searchResults": "={{$node['Azure AI Search'].json['value']}}"
  59. }
  60. },
  61. "name": "Azure Chatbot",
  62. "type": "n8n-nodes-base.httpRequest",
  63. "typeVersion": 1,
  64. "position": [850, 300]
  65. },
  66. {
  67. "parameters": {
  68. "values": {
  69. "string": [
  70. {
  71. "name": "chatbotResponse",
  72. "value": "={{$node['Azure Chatbot'].json['response']}}"
  73. }
  74. ]
  75. }
  76. },
  77. "name": "Log Response",
  78. "type": "n8n-nodes-base.set",
  79. "typeVersion": 1,
  80. "position": [1050, 300]
  81. }
  82. ],
  83. "connections": {
  84. "Microsoft Outlook Trigger": {
  85. "main": [
  86. [
  87. {
  88. "node": "Get Email Details",
  89. "type": "main",
  90. "index": 0
  91. }
  92. ]
  93. ]
  94. },
  95. "Get Email Details": {
  96. "main": [
  97. [
  98. {
  99. "node": "Azure AI Search",
  100. "type": "main",
  101. "index": 0
  102. }
  103. ]
  104. ]
  105. },
  106. "Azure AI Search": {
  107. "main": [
  108. [
  109. {
  110. "node": "Azure Chatbot",
  111. "type": "main",
  112. "index": 0
  113. }
  114. ]
  115. ]
  116. },
  117. "Azure Chatbot": {
  118. "main": [
  119. [
  120. {
  121. "node": "Log Response",
  122. "type": "main",
  123. "index": 0
  124. }
  125. ]
  126. ]
  127. }
  128. }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement