In this demo, we show how you can use Arch's bearer authorization capability to connect your agentic apps to third-party APIs. More specifically, we demonstrate how you can connect to two Spotify APIs:
Where users can engage by asking questions like "Show me the latest releases in the US", followed by queries like "Show me top tracks from Taylor Swift".
-
Ensure the prerequisites are installed correctly.
-
Create an
.env
file with API keys for OpenAI and Spotify.- Sign up for an OpenAI API key at https://platform.openai.com/signup/
- Sign up for a Spotify Client Key/Secret by following instructions at https://developer.spotify.com/dashboard/
- Generate a Spotify token using the https://accounts.spotify.com/api/token API, using
curl
or similar commands. - Create a .env file with the following keys:
OPENAI_API_KEY=your_openai_api_key SPOTIFY_CLIENT_KEY=your_spotify_api_token
-
Start Arch
sh run_demo.sh
-
Navigate to http://localhost:18080
-
Ask "show me new album releases in the US"