wayfound
v2.5.0
Published
Wayfound AI Agent management platform
Readme
Wayfound Manager SDK for JavaScript
Welcome to the Wayfound Manager SDK for JavaScript! This SDK enables you to connect your AI Agents to Wayfound, regardless of where they are built. It supports creating sessions and sending them to Wayfound.
Table of Contents
What is Wayfound?
Wayfound gives you a central hub to manage and maximize the benefits from all of your AI agent team members in a coordinated way — resulting in accelerated agent maturity, faster ROI, improved trust, and reduced risk.
Features
- Send sessions to Wayfound for analysis and processing.
Installation
Install the SDK via npm:
npm install wayfoundGetting Started
Prerequisites
To use the SDK, you need:
- An Agent ID: A unique identifier for each AI Agent.
- An API Key: A secure key for authenticating requests.
Please visit our website to get started.
Initialize the SDK
Here’s how you can initialize the Wayfound SDK in your JavaScript project:
import { Session } from "wayfound";
const session = new Session({
wayfoundApiKey: "<API_KEY>",
agentId: "<AGENT_ID>",
metadata: { source: "web", plan: "pro" }, // optional, accepts an object or JSON string
});Replace <API_KEY> and <AGENT_ID> with your actual API key and Agent ID, for production scenarios keep the <API_KEY> secure.
Options
| Parameter | Type | Description |
|-----------|------|-------------|
| wayfoundApiKey | string | Your Wayfound API key (defaults to WAYFOUND_API_KEY env var) |
| agentId | string | Your Agent ID (defaults to WAYFOUND_AGENT_ID env var) |
| applicationId | string | Optional application identifier (defaults to WAYFOUND_APPLICATION_ID env var) |
| visitorId | string | Optional visitor identifier |
| visitorDisplayName | string | Optional visitor display name |
| accountId | string | Optional account identifier |
| accountDisplayName | string | Optional account display name |
| sessionId | string | Optional session ID for existing sessions |
| metadata | string | object | Optional custom session metadata. Objects are automatically JSON-stringified. |
Usage
Record Session
You can create sessions and send them to Wayfound for processing:
const messages = [
{
timestamp: "2025-05-07T10:00:00Z",
event_type: "assistant_message",
attributes: {
content: "Hello!",
},
},
{
timestamp: "2025-05-07T10:00:10Z",
event_type: "user_message",
attributes: {
content: "I need help!",
},
},
];
await session.create({ messages });License
This SDK is licensed under the MIT License
