Application Scenario: Building an Agricultural Real-Time Data Query Assistant
If you are an agricultural professional, such as a farmer, wholesaler, retailer, or a policy maker in agricultural public sector organizations, in order to analyze and predict market prices and transaction trends for various agricultural products (such as rice, fruits, vegetables, livestock products, etc.), you can integrate with the public APIs provided by the Ministry of Agriculture to query agricultural product transaction data in real-time, further enabling data analysis and improving decision-making efficiency.
Application Process
Obtain API Configuration
First, you can obtain the required data integration source according to your needs through the API section of the Agricultural Data Open Platform.
Here we use agricultural product transaction market data as an example for tool setup. In the Parameters section, click the "Try it out" button, then click "Execute" to obtain the API configuration data.
Click "Tools" in the left function menu of the MaiAgent platform, then click "Add Tool"
Fill in the display name, tool name, select API for tool type, and write the description of this tool
In the API configuration section below, you can take a screenshot of the API information interface from the Agricultural Data Open Platform and paste it into the MaiAgent tool creation assistant to quickly obtain API URL, HTTP method, headers, and parameter structure content.
API URL Example: https://data.moa.gov.tw/api/v1/AgriProductsTransType/
Parameter Structure (JSON Schema) Example:
2. Create Agricultural Data Query AI Assistant
Create AI Assistant
Click "AI Assistant" in the left function menu of the MaiAgent platform, then click "Create AI Assistant"
Select "Agent" for response mode, and enter role instructions
Select the "Tools" tab, click "+ Select Tool"
Select the agricultural product transaction market query tool you just created, and click confirm
3. AI Assistant Online Application
Now you can directly ask questions through the AI assistant Q&A interface to quickly query information such as agricultural product transaction volume and average price changes. This allows you to instantly grasp market prices and transaction trends, facilitating further data analysis and improving decision-making efficiency!
You can also go to the "All Conversations" function of the MaiAgent platform to view the tool invocation records when the AI assistant responds.