uAgent Business Finder Integrations Examples ๐ค
This repository contains examples of business finder integrations using three agents: business_finder_agent, business_details_agent and user_agent.
-
user_agent: This agent takes request as details from user (city and category), type of business they want to look for. -
business_finder_agent: This agent takes city and category from user, fetches city's location coordinates using GeoCoding API and passes it to Local Business Finder to fetch list of ten businesses names. -
business_details_agent: This agent gets list of business names from business finder agent and takes input from user about which business they want details about. It retrieves the details of the business using API's used inbusiness_finder_agentand sends it tobusiness_finder_agentwhich in turn sends it to user.
Getting Started ๐
To use these agents, follow the steps below:
Step 1: Obtain API Keys ๐
Before running the agents, you need to obtain the required API keys:
GeoCoding_API
- Visit the RapidAPI website: https://rapidapi.com/apininjas/api/geocoding-by-api-ninjas/
- If you don't have an account, create one by signing up.
- Once you are logged in, click on test endpoint and register for API on free-tier.
- Once done you will see X-RapidAPI-Key in header parameter.
LocalBusinessListingFinder_API ๐๏ธ
- Visit the RapidAPI website: https://rapidapi.com/alreadycoded/api/local-business-listing-finder/
- If you don't have an account, create one by signing up.
- Once you are logged in, click on test endpoint and register for API on free-tier.
- Once done you will see X-RapidAPI-Key in header parameter.
Step 2: Set API Keys and address in agent scripts
- Fill in the API Keys in the
business_finder_agentandbusiness_details_agentscripts. - Check for all three agent's addresses and replace them at relevant places in the script.
Step 3: Run Project
To run the project and its agents:
cd src
python main.py
Now you have the agents up and running to perform business finder integrations using the provided APIs. Happy integrating! ๐