Icon

Currency Conversion Agent

Currency Conversion Agent

Exercise 02

Step 4. List the tools

  1. Execute the List Files/Folders node to list the tools available in the Tool folder.

  2. Add a Workflow to Tool node and select the column containing the tool paths.


Step 1. Authenticate & select

  1. Add the credentials provided by the instructor to the Get API Key component to access the OpenAI API key.*

  2. Pass the key as a flow variable to the OpenAI Authenticator node.

  3. Use the OpenAI LLM Selector to connect to the default model.


*If you want to use your own credentials, replace the Get API Key with a Credential Configuration node and provide your OpenAI API key in the password field.

Step 2. Talk to the LLM

  1. Add an Agent Chat Widget node.

  2. Execute the node and chat with the LLM in the view below.


Step 5. Empower the agent with the tools

  1. Drag the connection from the Workflow to Tool to the Agent Chat Widget and select Toolsfrom the menu that appears.

  2. Configure the Agent Chat Widget with the tool column path and select the box Show tool calls and results.


Step 3. Questions for the agent

The LLM behind the agent should be able to reply to generic questions. For example, try

  • How do you count to 10 in Dutch?

  • What is the currency used in Switzerland?

But what happens if you ask questions for which it needs some additional knowledge?

  • How much is 1 Swiss Franc in Euros?

Step 6. More questions!

Now the agent is equipped with some tools that should help it answer questions like:

  • How much is 1 Swiss Franc in Euros?

Note the information produced by the tool.

However, try the following question:

  • How much is 140 Euros to GBP?

To answer it, open the Tools folder and finish implementing the ConvertToCurrency tool to make it available to your agent.

Agent Chat Widget (experimental)
List tools
List Files/Folders
OpenAI LLM Selector
Agent Chat Widget (experimental)
Get API Key
Workflow to Tool
OpenAI Authenticator

Nodes

Extensions

Links