Skip to content

Commit

Permalink
Update message-to-bot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KlviG authored Jul 1, 2024
1 parent dad646d commit f978e10
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions DSL/Ruuter.public/DSL/POST/internal/message-to-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,19 @@ check_if_bot_is_unable_to_reply:
next: check_for_fallback_bot
- condition: ${post_message_to_bot_result.response.body?.[0]?.text == 'Suunan teid klienditeenindajale. Varuge natukene kannatust.'}
next: get_organization_working_details
- condition: ${post_message_to_bot_result.response.body?.[0]?.text.match(/^OPENSEARCH/)}
next: common_service1
next: extract_bot_responses

common_service1:
call: http.post
args:
url: "[#CHATBOT_RUUTER_PUBLIC_INTERNAL_CS]/services/companies/search.yml"
body:
message: ${post_message_to_bot_result.response.body?.[0]?.text.match(/^OPENSEARCH(.*)/)}
result: common_service1_result
next: extract_bot_responses

check_for_fallback_bot:
call: http.post
args:
Expand Down

0 comments on commit f978e10

Please sign in to comment.