home-json-ld.ts 923 B

12345678910111213141516171819202122232425262728293031323334
  1. import { websiteConfig } from "@/lib/website-config";
  2. import { getSiteUrl } from "@/lib/site";
  3. export function buildHomeJsonLd() {
  4. const url = getSiteUrl();
  5. const repo = websiteConfig.github.repo;
  6. return {
  7. "@context": "https://schema.org",
  8. "@graph": [
  9. {
  10. "@type": "Organization",
  11. name: "AI-CS",
  12. url,
  13. sameAs: [repo],
  14. },
  15. {
  16. "@type": "SoftwareApplication",
  17. name: "AI-CS 智能客服系统",
  18. applicationCategory: "BusinessApplication",
  19. operatingSystem: "Web · Docker 私有化部署",
  20. description:
  21. "开源 AI 客服系统,支持多模型对话、知识库向量检索(RAG)、提示词工程、人工协作与可观测运营。",
  22. url,
  23. codeRepository: repo,
  24. offers: {
  25. "@type": "Offer",
  26. price: "0",
  27. priceCurrency: "USD",
  28. },
  29. },
  30. ],
  31. };
  32. }