Adaptive Response API

he Adaptive Response API gives developers access to Arc402’s intelligence in real time. Once signals are submitted, the system can provide context-aware recommendations, insights, or suggested actions, allowing your app to react dynamically as conditions change.

This API is useful for making applications smarter, enabling features like automated decision-making, predictive suggestions, or adaptive workflow adjustments without building your own AI engine.

import { Arc402 } from "arc402-sdk";

const arc = new Arc402({ apiKey: process.env.ARC402_API_KEY });

// Prepare context data
const inputData = {
    userId: "0xABCD",
    recentActivity: ["trade", "stake", "swap"]
};

// Get insights from Arc402
const insights = await arc.adaptiveResponse(inputData);

insights.actions.forEach(action => {
    console.log("Suggested action:", action.description);
});

In this example, the application sends user activity data to Arc402, which then returns actionable suggestions. Developers can directly use these insights to enhance UX, automate tasks, or guide users, making the app more intelligent and responsive.

Last updated