Shipped
HomeContacts
  • Get started
  • 📚Tutorials
    • Make a waiting list
    • Launch a pre-sale
    • Build a SaaS
    • Create your store on Lemon Squeezy
  • 🟩Features
    • AI Services
    • Affiliate Program
    • Analytics
    • Authentication
      • MailChimp
      • Loops
      • AWS SES
      • SendGrid
      • Supabase Auth
        • Supabase Authentication Flow
        • Supabase Magic Link
        • Supabase Email & Password
        • Supabase Login with Google
    • API endpoints
      • 🛡️Authenticated API
    • Blog
    • Customer support
    • Chrome Extension
    • Dark mode
    • Database
      • Update your database
      • MongoDB
    • Emails
    • Error pages
    • Icons
    • Onboarding
    • Payments
      • Lemon Squeezy
        • Subscriptions
        • One-time purchase
        • Test mode
      • Stripe
    • Private pages
    • SEO
    • shadcn/ui
    • Supabase
    • Workspace / Organizations
  • 📦Components
    • AccountMenu
    • CtaBox
    • DarkModeSwitch
    • Explainer video
    • FAQ
    • Features
    • Footer
    • Header
    • Hero
    • Lifetime
    • Pricing
    • Sales Notification
    • Secondary Sidebar Pages
    • Sidebar
    • Tabs
    • Testimonials
    • Waitlist
    • WebAppPage
  • 🚀Deployment
  • ✅Other
    • Configuration
    • Changelog widget
    • Favicon
    • Google Fonts
    • Sitemap
    • Theme
  • Updates
  • GitHub Repository
  • Support
Powered by GitBook
On this page

Was this helpful?

  1. Features

AI Services

PreviousCreate your store on Lemon SqueezyNextAffiliate Program

Last updated 1 month ago

Was this helpful?

Shipped includes an AI Chatbot to showcase how you can integrate AI services inside your product.

You can open the AI Chatbot at http://localhost:3000/ai-chatbot

You can find the AI Chatbot UI in the file src/components/pages/AIChatbot/AIChatbot.tsx while the backend route is at src/app/api/chat/[provider]/route.ts.

This example AI Chatbot implementation shows how to use the AI Services OpenAI, Anthropic, an Google Gemini, but Shipped makes use of the Vercel AI SDK, which supports many other AI services, likes:

  • xAI Grok

  • Azure OpenAI

  • Amazon Bedrock

  • Google Vertex AI

  • Mistral

  • DeepSeek

  • Perplexity

  • Ollama

Configuration

To use the AI Chatbot, you need to configure some environment variables:

  • OPENAI_API_KEY

  • ANTHROPIC_API_KEY

  • GOOGLE_GENERATIVE_AI_API_KEY

You can generate the API Keys by creating an account on the relative AI services websites.

Use Your Own Keys

If you prefer to not provide your own AI service API Keys, but instead let the users provide their API keys, you can:

  • add a modal to ask for the API Key

  • save the API Key in the local storage of the browser

  • update the backend request and endpoint to read the API Key from the body of the request

and many more. Check out the for the full list of AI providers.

The Vercel AI SDK is a powerful library, and the describes a lot of uses cases and functionalities. I recommend to read it if you want to learn more about what's possible.

🟩
official page
documentation