The Currency Conversion solution contains an example flow to convert one currency to another.
User: Can you convert currencies?
Bot: Which currency would you like to convert from?
User: DollarsBot: To which currency would you like to convert USD?
User: EuroBot: 1.00 USD is worth EUR 0.88.
User: Can you convert to zloty?
Bot: Which currency would you like to convert from?
User: SEKBot: 1.00 SEK is worth PLN 0.42.
User: 15 euro in canadian dollars
Bot: 15.00 EUR is worth CAD 22.65.
User: 5 pounds
Bot: To which currency would you like to convert GBP?
User: YenBot: 5.00 GBP is worth JPY 727.36.
This solution contains the following components:
Name | Type | Description |
---|---|---|
Currency Conversion | Folder | Folder with subfolders for the flows and language objects in this solution. |
Convert Currency | Flow | Slot filling flow. Allows user to specify currency to convert from, currency to convert to and an optional amount. Stored in the Currency Conversion > Flows folder. |
MAIN_CURRENCIES_WITH_VARIABLES.ENTITY | Entity | Entity containing currencies and their currency code. If during testing you find a particular currency which is not recognized, you can add it here. |
Convert Currency Integration | Integration | Integration to convert currencies. |
Currency Conversion Syntax Triggers | Order group | Order group which contains the syntax triggers for this solution. |
Make sure you check for possible conflicts before you import this solution into an existing solution (merge solutions).
To convert currencies, the solution contains an integration which uses exchangerate-api.com. The exchange rate data is updated once every 24 hours.
Was this page helpful?