Try out the Signals and Vercel AI integration
Your application is now ready to try out.
Run it with:
npm run dev
Make sure you've replaced the placeholder values in .env.local with real credentials.
Build up behavioral context
Open your app in a browser and browse around for a few minutes. Visit different pages, click some links, and spend time on different sections. The Browser tracker will record these interactions, and Signals will compute your attributes in real time.
Open the chat and ask a general question. If your Signals service is returning attributes for your session, the agent's response will reference what you've been doing.
Verify Signals context
You can verify that the app is receiving the Signals context by adding a log to the API route:
console.log(
"[chat] signals context:",
signalsContext || "(empty — no session data yet)",
);
If the context is empty, check:
- Is your attribute group published?
- Did you create a service with the right name?
- Have you been browsing for long enough for events to flow through the pipeline?
To rerun the attribute group test query in Console, click Edit on your attribute group page > Run Preview.