Picture this: It's 6 PM, you're tired from work, and you ask your phone "What should I make for dinner tonight?" Instead of generic results, you get a personalized response: "Based on your preferences, how about that Mediterranean chicken bowl you loved last month? I can adjust it for the ingredients you have at home."
That's exactly what you're building today—an AI assistant that knows YOU. Not just any meal planner, but your meal planner.
Your custom AI chef will:
● Learn your unique taste preferences through natural conversation
● Remember your dietary restrictions, favorite cuisines, and cooking skill level
● Suggest meals based on your mood, schedule, and available ingredients
● Keep a personal database of recipes you've tried and loved
● Evolve its recommendations as your tastes and needs change
Log into your Alibaba Cloud Console and look for the search bar at the top (This is where we'll find all the services we need)
1. In the search bar, type: Resource Management
2. Click on Resource Management from the dropdown
3. Click Resource Groups in the left menu
4. Click Create Resource Group
5. Fill in:
6. Click OK
Why do this? It keeps all your project resources organized and makes cleanup easier.
We need to "turn on" the services we'll use. Think of this like installing apps on your phone.
Note: Model Studio is the unified platform that provides AI capabilities through DashScope.
✅ Checkpoint: You should see all three services in your console without Activate buttons
Your AI agent needs keys to access Alibaba Cloud services. Think of these like passwords.
1. Go back to Alibaba Cloud Model Studio service
2. In the left menu, look for one of these options:
3. Click Create API Key or Generate API Key
4. IMPORTANT: Copy the API key and save it safely
5. The key should look like: sk-xxxxxxxxxxxxxxxxxxxxxxxxx
⚠ This is the most critical step! Without this API key, your AI won't work.
⚠️ Security Note: Never share these keys publicly or put them in forums/chat!
1. Go to Function Compute in your console
2. Click Functions in the left menu
3. Click Create Function
4. Choose Create from scratch
5. Fill in:
6. Click Create
✅ Checkpoint: You should now have a function ready for code!

1. In your function, click Configuration tab
2. Find Environment Variables section
3. Click Edit or Add Environment Variable
4. Add:
5. Click Save
⚠️ This step is essential! Without the environment variable, your AI won't work.
1. In your function, click Test tab
2. Create a new test event:

3. Click Test
✅ Success: You should see a response like:

❌ If you get API key errors:
● Double-check your DashScope API key in Model Studio
● Make sure the environment variable is set correctly
● Redeploy your function after adding the environment variable
❌ If you get parsing errors:
● Check that your test JSON is properly formatted
● Make sure you're using the exact JSON structure shown above
❌ If you get timeout errors:
● Your function might need more time to process
● Go to Configuration → Basic Settings and increase timeout to 60 seconds
What you'll build: A basic HTML page with a chat interface
Key features:
● Simple text input and send button
● Chat history display
● Real-time messaging with your AI bot
● Responsive design that works on mobile
Technologies: HTML, CSS, JavaScript
Hosting: Upload to Function Compute for static hosting
What you'll accomplish: Make your bot accessible via a public URL
Key features:
● Create API Gateway instance
● Configure HTTP triggers
● Set up custom domain (optional)
● Enable HTTPS and security headers
● Test public endpoint
Outcome: Your bot will have a public URL like https://your-bot.alibabacloud.com
What you'll enhance: Help your bot remember previous conversations
Key features:
● Store conversation history in TableStore
● Implement session management
● Context-aware responses
● User preference persistence
● Conversation threading
Technologies: TableStore (NoSQL database)
What you'll add: More sophisticated meal planning capabilities
Key features:
● Weekly meal planning
● Grocery list generation
● Nutritional analysis
● Recipe scaling (serves 2 vs serves 4)
● Seasonal ingredient suggestions
● Integration with nutrition APIs
AI Models: Advanced prompting techniques, function calling
🎉 Congratulations - You've Built Your First AI Agent!
You've just transformed from a complete beginner to someone who can build, deploy, and enhance AI-powered applications on Alibaba Cloud. Your meal planning bot isn't just a tutorial project—it's a foundation you can build upon.
What you've mastered:
● Setting up cloud infrastructure from scratch
● Integrating AI models with real applications
● Building user-friendly interfaces
● Managing conversation state and memory
● Deploying production-ready services
Disclaimer: The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.
From Code to Intelligence: Unleashing Machine Learning Potential with Alibaba Cloud
Launching Your Scalable Web App with Alibaba Cloud ECS & OSS
12 posts | 0 followers
FollowAlibaba Cloud_Academy - March 8, 2023
Hironobu Ohara - May 25, 2023
Alibaba Cloud Community - June 2, 2023
Academy Insights - August 29, 2025
Data Geek - April 25, 2024
Alex - November 8, 2018
12 posts | 0 followers
Follow
Alibaba Cloud Model Studio
A one-stop generative AI platform to build intelligent applications that understand your business, based on Qwen model series such as Qwen-Max and other popular models
Learn More
Tongyi Qianwen (Qwen)
Top-performance foundation models from Alibaba Cloud
Learn More
Function Compute
Alibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.
Learn More
AI Acceleration Solution
Accelerate AI-driven business and AI model training and inference with Alibaba Cloud GPU technology
Learn MoreMore Posts by Farah Abdou