API Tools
API Tools
이 페이지는 아직 한국어 언어로 제공되지 않습니다. 기본 언어(English)로 표시합니다.
API Tools
API Setting lets users integrate custom tools with their own database, such as addresses, tracking, or other user information.
Steps to Use API Setting
- Open the API Setting Page:
- Go to AI Agent Setting.
- Click the Integration tab.
- Scroll down to the AI Tools section for features that can connect to the user’s database.
- Create a Custom AI Tool (Example: Check Shipping Cost):
- Click Create AI Tools or go directly to API Setting.
- Select Add New API Tools.
- Fill in the New Tool Information:
- Name: Get_shipping_cost
- Description: A tool to get the shipping cost.
- Webhook Address: The API server address (example:
https://logistic-dev-api.zcode.id/order/shipping/cost). - Max Tool Calls: The maximum number of calls (default: 30).
- API Key Bearer: (Optional) for additional security.
- Add AI Input Fields:
- Destination:
- Type: Text, Description: Postal code (example: 11470), Required: Yes.
- Weight:
- Type: Number, Description: Package weight in grams (example: 1000), Required: Yes.
- COD:
- Type: Boolean, Description: Cash on Delivery (true/false), Required: No.
- Courier:
- Type: Text, Description: The courier used, Enum: jne, ninja, Required: Yes.
- Destination:
- Add Additional Payload:
- Origin:
- Key: origin, Value: 14310.
- Contact Info:
- Key: no_hp, Type: Phone Number.
- Origin:
- Save and Test the Tool:
- Click Create Tool.
- Run a test on the right side of API Setting.
- Click Save.
- Enable the Tool:
- Go back to AI Agent Setting > Integration.
- Enable the tool you created.
- Test in General Chat:
- Try chatting with a shipping cost request to see the AI’s response.
If anything is still unclear, watch the video tutorial below to see the steps in action.