Bailian AI agents autonomously curate knowledge content in Notion (secured via IDaaS M2M auth), a parallel pipeline ingests that content into Elasticsearch with PAI-trained ranking models, and a Vercel-hosted frontend application serves both the AI-generated pages and search results to end users — forming a complete AI-driven knowledge platform with enterprise auth, intelligent search, and public-facing web presence.
Use this architecture when building an enterprise-grade, self-maintaining knowledge platform where Alibaba Cloud Bailian AI agents autonomously generate and curate content in Notion, secured via IDaaS M2M authentication. It’s ideal for teams requiring a parallel Elasticsearch ingestion pipeline with PAI-trained ranking models, delivered globally via a Vercel-hosted frontend with Cloudflare edge caching.
terraform apply -var="env=prod"). Configure Alibaba Cloud IDaaS for M2M keyless auth, generating a client_id and client_secret for the Bailian agent.content:read and content:write scopes. Export the DATABASE_ID and NOTION_API_KEY.notion-build-ai. Configure mcp.json:``json { "mcpServers": { "notion": { "command": "node", "args": ["dist/index.js"], "env": { "NOTION_API_KEY": "<key>", "DATABASE_ID": "<id>" } } } } ``
https://<domain>/mcp. Set system prompt to autonomously draft and publish pages to DATABASE_ID.POST https://api.notion.com/v1/databases/{DATABASE_ID}/query. Pipe blocks to Elasticsearch (PUT /knowledge-index/_doc/{id}) and trigger PAI ranking inference via POST https://pai-api.aliyuncs.com/v1/rank.vercel link and vercel env pull. Integrate Notion as headless CMS via vercel-integrate-services. Configure Next.js routes to fetch pages (GET /api/notion/pages) and query Elasticsearch (POST /api/search?q=...).vercel --prod). Route traffic through Cloudflare Workers, mapping domains to Vercel and securing API endpoints with IDaaS JWT validation.Data originates from Bailian AI agents, which authenticate via IDaaS M2M and write structured content to Notion via MCP tool calls. Notion acts as the source-of-truth headless CMS. A parallel ECS-based worker syncs Notion updates to Elasticsearch, enriching documents with PAI-trained ranking scores. The Vercel frontend queries both Notion (for page rendering) and Elasticsearch (for ranked search results), with Cloudflare handling edge routing, caching, and WAF.
content:read, content:write)npm i -g vercel) and linked projectdense_vector fields. Failing to define mappings during index creation breaks relevance scoring.revalidate: 60 in getStaticProps and trigger manual revalidation via page.updated events.Q: What is the AI content platform with search and a public website? A: It is a complete AI-driven knowledge platform that integrates Bailian AI agents, Notion, Elasticsearch, and a Vercel-hosted frontend. Bailian agents autonomously curate content in Notion secured by IDaaS M2M auth, while a parallel pipeline indexes the data into Elasticsearch with PAI-trained ranking models. The Vercel application then serves both the AI-generated pages and search results to end users through a public-facing web interface.