Making an Agent that Provides Recommendations
To make an agent that provides recommendations to the user, all you need to do is state the input you want to analyze and the type of recommendation you want to make in the agent’s body. The Logic API will automatically handle the rest.
Step 1: Creating the agent
For this example, let’s create an agent that recommends songs to the user based on their input. The agent will analyze the user’s input and provide a recommendation. For the input on this agent, we will use the contents of a CSV file of songs from a playlist. It’s easy to convert Spotify playlists to CSV files, and we can use this to create an app that reads from the Spotify API later.Step 2: Explain the goal
Let’s start by explaining what we want the Logic API to do. We want the agent to analyze the user’s input and provide a recommendation based on the input. The agent will read from a CSV file of songs from a playlist, analyze the user’s taste, and provide 5 recommendation songs. We want the agent to take note of the following:- The songs in the playlist
- The artists of the songs
- The albums of the songs
- The release dates of the songs
- The genres of the songs
Step 3: Explain the input
To give the Logic API some extra context, let’s make sure to explain the input we want to analyze. We will be providing a CSV file of songs from a playlist. The CSV file will contain the following data:CSV file contents
Step 4: Give an example
We also want to provide an example of the CSV file contents and an example recommendation.Examples
Step 5: Testing this iteration of the agent
Using thePreview button, we can test this agent to see if it works as expected.
Logic API Output

