This topic describes how to use Microservices Engine (MSE) XXL-JOB and DeepSeek to periodically push trending financial news and analyze financial data.
Background information
With continuous capability improvement, AI large language models (LLMs) are applied to more business scenarios. In many business scenarios, jobs can be manually triggered or automatically scheduled in the background. Job capabilities are also enhanced with LLM capabilities. Typical scenarios:
Risk monitoring: Periodically monitor key metrics of the system and identify potential risks based on the intelligent analysis capability of LLMs.
Data analysis: Periodically collect online financial data, use LLMs to perform intelligent analysis, and then generate investment ideas for investors.
Prerequisites
Alibaba Cloud Model Studio is activated, and an API key is created in the Alibaba Cloud Model Studio console.
Environment preparations
Build DeepSeek
Build XXL-JOB
Push trending financial news
This section describes how to use MSE XXL-JOB or self-managed XXL-JOB with DeepSeek R1 managed by Alibaba Cloud Model Studio to push trending financial news. For demo details, see xxljob-demo (SpringBoot).
Step 1: Connect your application to XXL-JOB
Log on to the Alibaba Cloud Container Service for Kubernetes (ACK) console, and create an ACK Serverless cluster. On the ACK Serverless tab of the buy page, select Configure SNAT for VPC to facilitate demo image pulling. Ignore this operation if SNAT is already configured for the VPC.
On the Clusters page in the ACK console, click the name of the cluster. In the left-side navigation pane, choose Workloads > Deployments. On the Deployments page, click Create from YAML. Then, enter the following YAML code to connect your application to MSE XXL-JOB. For information about how to configure the parameters
-Dxxl.job.admin.addresses,-Dxxl.job.executor.appname,-Dxxl.job.accessToken,-Ddashscope.api.key, and-Dwebhook.url, see Configure startup parameters.
Step 2: Configure startup parameters
Obtain the settings of startup parameters.
Log on to the MSE console, go to the XXL-JOB Version page, and then select a region in the top navigation bar.
Click the ID of the instance. In the left-side navigation pane, click Application Management. Click Access in the Number of actuators column of the target application.

Replace the parameter settings with those of the destination instance, and click One-click Copy to copy the settings to the YAML code.
-Dxxl.job.admin.addresses=http://xxljob-xxxxx.schedulerx.mse.aliyuncs.com -Dxxl.job.executor.appname=xxxxx -Dxxl.job.accessToken=xxxxxxxLog on to the Alibaba Cloud Model Studio console, click the API-KEY icon in the upper-right corner to go to the API management page, and then create or copy an API key.
After you replace the API key, copy the parameter settings to the YAML code.
-Ddashscope.api.key=sk-xxxAdd a custom chatbot in the DingTalk group settings and obtain the webhook URL of the chatbot.
After you replace the value of
access_token, copy the parameter setting to the YAML code.-Dwebhook.url=https://oapi.dingtalk.com/robot/send?access_token=xx
Step 3: Create and run AI jobs
MSE XXL-JOB console
Log on to the MSE console, go to the XXL-JOB Version page, and then select a region in the top navigation bar. Click the ID of the instance. In the left-side navigation pane, click Task Management. On the page that appears, click Create Task.
In the Create Task panel, set JobHandler Name to
sinaNews, enter thepromptinformation in the Input field, and then retain the default settings of other parameters.On the Task Management page, find the
sinaNewsjob that you created and click Run once in the Operation column. Wait until the job execution is complete. Then, the DingTalk group can receive daily news analyzed and summarized by AI LLMs.
Self-managed XXL-JOB Admin
In the self-managed XXL-JOB Admin console, set JobHandler to
sinaNews. For information about job parameters, see Configure startup parameters.On the Task Management page, manually run a job once. Then, you can receive a DingTalk notification.
Analyze financial data
In Push trending financial news, only news from Sina Finance is pushed. If you want to pull national and international financial news and data in near-real time and make quick decisions, the timeliness of all jobs needs to be considered. To address this, you can use MSE XXL-JOB sharding broadcast jobs to split large jobs into small jobs and use small jobs to pull different data. Then, you can use the job orchestration capabilities provided by MSE XXL-JOB to build a workflow and complete jobs step by step.
Create three jobs on MSE XXL-JOB and establish job dependencies. Among the three jobs, one job is used to pull financial data, one job is used to analyze data, and one job is used to generate reports. The routing policy of the job for pulling financial data is sharding broadcast.
To run the job for pulling financial data, use sharding broadcast to distribute multiple subtasks to different executors to obtain national and international finance news and financial data and store results to storage services, such as databases, Redis instances, or object storage services.
To run the data analysis job, obtain the current financial data, call DeepSeek to analyze the data, and then store the analysis results.
After the data analysis is completed, run the report generation job to generate a report or table for the analyzed data. Then, use DingTalk or emails to deliver the report or table to users to provide investment ideas.






