Alibaba Bailian +12306 MCP, create an AI intelligent ballot agent, super cool!

With the continuous development of AI technology, its application scenarios in daily life are becoming more and more extensive. This article introduces an AI intelligent ballot agent project that combines Alibaba Cloud Bailian and 12306 MCP for your reference.

Two days ago, with the help of Cursor+12306 MCP, we launched an AI intelligent voting system.

I received a lot of likes from my friends.

Some bigwigs directly want to buy the source code, which seems to really solve some of the needs.

However, the last time I built a system with Cursor, I faced a problem that it was impossible to hold a Cursor anytime and anywhere.

It has to be made into a platform, preferably in the form of dialogue flow.

It can be used anytime and anywhere, so it is most suitable to be an agent.

B-end product manager’s ability model and learning improvement
The first challenge faced by B-end product managers is how to correctly analyze and diagnose business problems. This is also the most difficult part, product design knowledge is basically not helpful for this part of the work, if you want to do a good job in business analysis and diagnosis, you must have a solid …

View details >

After researching a round, I finally decided to combine 12306 MCP with Alibaba Cloud Bailian to make an AI intelligent ballot agent. In addition to basic abilities, smart votes, many useful abilities have been added.

Summary of ticket information inquiry:

I want to depart from Xi’an to Zhengzhou the day after tomorrow, please recommend a reasonable ticket, and recommend a return ticket in three days.

You can also compare the fares of various trains and make a chart, which is more intuitive.

It also allows him to generate a map of train stops:

It can also generate travel guides for stops. My logic here is to let him search online first, and if he can’t find it, he will call the Wenshengtu model and let AI generate images.

Alibaba’s own raw map MCP feels quite strong.

It feels like the real thing, hahaha.

To be honest, looking at the city I took on the train and looking at these attractions, I couldn’t help but feel a hint of impulse in my heart.

It’s the kind of urge to get off the bus on the spot and go to the beauty~

I actually want to add some features similar to the pathway site website generated by Cursor, such as:

But after a test, the effect was very touching.

Of course, it’s not impossible, just a little troublesome, let Cursor+Claude 4 create a template first, and then let the agent generate it according to the template.

But that’s already a later story, and the current version can be regarded as solving the most basic needs of agents.

Many people may ask, the whole bells and whistles, there is a 12306 APP, you agent, it looks nothing.

Hahaha, I summarized the following advantages of directly querying ticket information with the 12306 APP:

1. It can intelligently recommend train times according to travel destinations and time 2. It can generate charts to compare the advantages and disadvantages of various schemes 3. It can generate train station maps 4. It can generate guides for route stations and attractions

Such an agent is not complicated to build, below, I will immerse you in the construction process of such an agent.

The original tutorial is not easy, thank you for liking \(^ ^)/ If this zan zan can reach 100, I will consider directly releasing the agent for internal testing.

This release has been updated with the following features:

First, open the Alibaba Bailian platform, go to “Application Management” – “New Application”, and select the agent application.

API configuration Here I choose the Tongyi Qianwen-Plus large model that I have experienced very well.

Then select the following MCP services under Skills.

Here’s a little bit of what these MCPs do.

12306-MCP: Mainly responsible for querying ticket information and station information.

Amap Maps: Amap MCP is used to configure the site map of the passing area.

AntV Visualization: Compare train data with visual charts.

Wanx Wensheng Map: You can generate picture information in the site attraction guide through Wensheng Map.

EdgeOne Pages: This can deploy the generated html website with one click.

Then you need to turn on the long-term memory mode, which can extract the key information of the conversation and save it to the corresponding memory.

The next most important thing is the prompt word, to be honest, it’s a bit too long, but the core is just a few skill points:

If you want this prompt, just reply to 12306 in the background.

Note adding this sentence to your prompt: Try to forget most of the irrelevant information when answering user questions. Only remember and use the information provided by users if they are very relevant to the current issue or conversation. Make sure your responses are concise, accurate, and focused on the user’s current question or conversation topic. Info: ${memory}

After doing this, you can directly click Publish in the upper right corner. Select a channel.

There are quite a lot of channels, and the official sharing channel has page access restrictions, and you need to log in with the RAM sub-account under the same Alibaba Cloud main account.

If you want to share the web links available to others in the city, you can directly choose the magic pen channel.

Of course, the most awesome plus envoy can be directly shared to the WeChat public account channel. It’s very interesting.

Just follow the steps to configure your WeChat credentials.

If it is an official sharing channel, you can see such a conversation flow interface.

To be honest, it makes a lot of sense to be such an agent.

Especially for people like me who travel by train rather than plane, it is very useful.

Suddenly, for a moment, I felt like I was back in more than ten years, carrying a backpack and a box of luggage alone.

From my hometown in the countryside, I embarked on the train to my dreams, looking at the scenery outside the window by the train window, in a silly daze.

The first time I stepped out of the small county, there was joy and a hint of timidity.

I really want to know if the spring when the train runs will also hide a dream.

I didn’t know then, but now, I do.

End of text
 0