Examples

AI Chatbot

Learn how to deploy an AI chatbot application with Ink using a simple prompt.

Create an Ink account and connect Ink

Make sure you have an Ink account and have set up Ink for your agent. Use the CLI, the Ink Skill, or MCP. For MCP auth, choose:

See Quick Start for full setup instructions.

Verify the connection

Once Ink is connected, confirm your agent can reach it by asking it to check.

Prompt

Do you have Ink connected?

Build the chatbot

Ask your agent to build an AI chatbot. The agent will scaffold a Next.js app with the Vercel AI SDK and a streaming chat interface.

Prompt

Build a chatbot web app using Next.js and the Vercel AI SDK. Use Anthropic's Claude as the LLM. Include a clean chat interface with streaming responses.

Deploy with Ink

Tell your agent to deploy. The app needs an ANTHROPIC_API_KEY environment variable to call the Claude API.

Prompt

Deploy with Ink. Use my Anthropic API key.

Tool Call
(
  : ,
  : ,
  : ,
  : {
    "0": "[object Object]"
  },
  : {
    "0": "[object Object]"
  }
)

Visit your chatbot

Ink returns a live URL once the build completes. Visit it to start chatting with your AI-powered chatbot.

Check logs and metrics (optional)

Ask your agent to pull build logs, runtime logs, or metrics for your deployed service.

Prompt

Check metrics and logs

That's it — your AI chatbot is deployed and live. From here you can add a custom domain, set up additional environment variables, or explore more examples.

On this page