Quick start: an assistant in your product in ten minutes

Everything below works against Vexyline Cloud (https://cloud.vexyline.com) and against your own host (use its address instead). You need an assistant that answers on a server: Rooms → your server → New assistant. All keys are made in the assistant's Connect tab.

You want Key Where it lives Guide
Your backend talks to the assistant App server vxa_… your server only The assistant API
A chat bubble on your website Website vxw_… your page (bound to your domain) The website widget
Claude Code, Cursor or another agent uses the assistant Agent (MCP) vxm_… the agent's config Assistants as MCP servers
The assistant acts in your systems a tool's signing secret your server only Your app's own tools
Cloud models from your own code Cloud models vxc_… made for you on sign-in Cloud models and search

1. Ask from the command line

export VX=https://cloud.vexyline.com KEY=vxa_…        # the App server key
C=$(curl -s $VX/v1/api/conversations -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
      -d '{"user":"me","name":"Me"}' | jq -r .conversation)
curl -s $VX/v1/api/conversations/$C/messages -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
      -d '{"text":"What can you help me with?","wait":60}' | jq -r .reply.text

The conversation also appears as a room in your app: you can read along and answer yourself.

2. From Node, streaming the reply

const VX = 'https://cloud.vexyline.com', KEY = process.env.VEXYLINE_KEY;
const h = { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' };

const { conversation } = await (await fetch(`${VX}/v1/api/conversations`, {
  method: 'POST', headers: h, body: JSON.stringify({ user: 'customer-1842', name: 'Ana' }) })).json();

const r = await fetch(`${VX}/v1/api/conversations/${conversation}/messages`, {
  method: 'POST', headers: h, body: JSON.stringify({ text: 'Where is my order 1042?', stream: true }) });
for await (const chunk of r.body) process.stdout.write(new TextDecoder().decode(chunk));   // SSE: delta… done

3. From Python

import os, requests
VX, H = "https://cloud.vexyline.com", {"Authorization": f"Bearer {os.environ['VEXYLINE_KEY']}"}
c = requests.post(f"{VX}/v1/api/conversations", json={"user": "ops-bot"}, headers=H).json()["conversation"]
r = requests.post(f"{VX}/v1/api/conversations/{c}/messages", json={"text": "Summarize today's tickets", "wait": 90}, headers=H)
print(r.json()["reply"]["text"])

4. On your website: one script tag

<script src="https://cloud.vexyline.com/v1/widget.js" data-key="vxw_…" defer></script>

The Website key works only on the domains you listed for it.

5. In Claude Code

claude mcp add --transport http my-assistant https://cloud.vexyline.com/v1/mcp \
  --header "Authorization: Bearer vxm_…"

Then, in Claude Code: "Ask my-assistant what our refund policy says". The Connect tab shows this command ready to copy, with your token in it.

6. Let it act: a tool on your server

Add a tool (Connect → Add a tool) named order_status, pointing at your endpoint. When the assistant calls it, your server receives a signed POST:

app.post('/vexyline/tools', express.text({ type: '*/*' }), (req, res) => {
  if (!fromVexyline(req, req.body, process.env.TOOL_SECRET)) return res.sendStatus(401);
  const { tool, arguments: args, conversation } = JSON.parse(req.body);
  // conversation.id is the conversation YOUR server started; look up who it is in your own records.
  res.json(lookupOrder(conversation.id, args.order));
});

fromVexyline is in Your app's own tools.

A complete example

Velora, a store, shows the whole pattern:

  • a chat bubble for guests and signed-in customers, handled by the store's backend (the key never reaches the browser)
  • tools that search products, fill the cart and check orders
  • staff answering from the Vexyline app

Its README, "Support chat with Vexyline", walks through it. The rule it follows applies to any app: decide who the person is on your side, when you start the conversation; never take identity from the model.

Ask for help

The Help Center's assistant has read these pages. Ask it, for example: "How do I keep a customer's conversation going across visits?"