LockstepsConnector Analytics

Grok

Analytics for Grok tools

Log from the HTTP handler Grok calls for your function. Use platform grok. The body is the same JSON as every other platform. phrase, tool_name, ts, event_id, and connector_id are required.

Grok function handler

await fetch("https://www.locksteps.ai/v1/analytics/ingest", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    connector_id: "YOUR_CONNECTOR_ID",
    platform: "grok",
    phrase: userPhrase,
    tool_name: "your_tool",
    ts: new Date().toISOString(),
    event_id: crypto.randomUUID(),
  }),
});

More

Questions: hi@locksteps.ai