This n8n workflow provides a simple yet powerful solution for real-time currency conversion via a webhook integrated with the ExchangeRate.host API. It enables users to send a POST request with source currency, target currency, and amount, and receive the converted amount instantly.
The workflow begins with a webhook trigger (‘Receive Conversion Request Webhook’), which listens for incoming HTTP POST requests. The request body must include the ‘from’ (source currency), ‘to’ (target currency), and ‘amount’ to convert.
Once the webhook receives the request, the ‘Convert Currency’ node constructs an API call to ExchangeRate.host, passing the user-provided currencies and amount. The request uses credentials stored securely within n8n to authenticate with the API.
The API response contains the converted currency amount, which is then sent back to the original caller through the ‘Respond with Converted Amount’ node. Optional nodes and logic can be added before the response to format, log, or process the conversion data further.
This workflow is particularly useful for financial applications, e-commerce sites, or international businesses needing quick, reliable currency conversion capabilities integrated into their automation workflows.
Reviews
There are no reviews yet.