You can integrate Alibaba Cloud Bailian agent applications into your business systems using either the DashScope SDK or HTTP requests.
Prerequisites
Before you begin, complete the following three steps to configure your development environment.
-
Obtain Credentials
- API Key: Go to the API Key Management page to create and retrieve your API Key.
- Bailian Application ID (APP_ID): Go to the Application Management page to create an agent application, then copy its
APP_IDfrom the application card.
-
Install the DashScope SDK
Skip this step if you're calling the HTTP API directly.
Select and run the appropriate installation command for your programming language. - Configure Environment Variables (Recommended) To ensure credential security and avoid hardcoding secrets in your source code, we recommend storing your API Key in an environment variable. The SDK will automatically read it from there.