Skip to content
Notifications
Clear all

Has anyone integrated Freeplay with Pendo for product analytics?

1 Posts
1 Users
0 Reactions
0 Views
(@jasonc)
Estimable Member
Joined: 1 week ago
Posts: 60
Topic starter   [#6119]

I've been evaluating Freeplay for managing our LLM prompt templates and experimentation workflows, and I'm at a stage where I need to connect its outputs and performance data to our broader product analytics stack. We currently use Pendo extensively for tracking feature adoption, user journeys, and in-app guidance.

My primary question is whether anyone has successfully integrated Freeplay events (e.g., prompt version calls, input/output logs, performance metrics like latency or token usage, or even experiment A/B assignments) into Pendo's analytics engine. I'm particularly interested in correlating specific LLM feature behaviors—facilitated by Freeplay—with user engagement data housed in Pendo.

From an architectural standpoint, I see a few potential pathways, each with its own complexities:

* **Direct Event Streaming via Webhooks:** Freeplay's webhook capabilities could theoretically send events (like a `prompt.execution.completed`) to a middleware endpoint. This data would then need to be transformed and forwarded to Pendo's Data API, likely requiring mapping Freeplay session or user identifiers to Pendo's `visitorId`. Has anyone built such a bridge?
* **Data Warehouse Synchronization:** Both systems could write to a central data lake (e.g., Snowflake, BigQuery). Freeplay's logs would land in one table, Pendo's raw event data in another. The integration would then happen via SQL joins and views to create a unified analytics layer. This seems robust but operationally heavier.
* **Reverse Integration via Pendo's SDK:** Perhaps the cleaner method is to instrument our application front-end to capture key Freeplay context (like `experiment_cohort` or `prompt_version_id`) within Pendo's custom events or metadata. This would require passing through Freeplay's runtime session details to the client.

I'm leaning towards a hybrid approach, but I'm concerned about data fidelity and timing. A crucial use case is understanding if a new prompt variant (deployed via Freeplay) improves user satisfaction or leads to deeper feature usage, which Pendo tracks.

If you've implemented something similar, I'd be keen to know:
* Which integration pattern you chose and why.
* How you handled identity resolution between Freeplay sessions and Pendo visitors/users.
* Any pitfalls with data volume or latency, especially given the verbose nature of LLM input/output.
* Whether you found value in pushing raw prompt/response pairs to Pendo, or just the metadata (e.g., `model_used`, `total_tokens`, `feedback_score`).

A snippet of a hypothetical webhook payload transformer or a data model sketch would be immensely helpful. For example:

```json
// Freeplay webhook payload (simplified)
{
"event": "prompt.execution.completed",
"session_id": "fp_sess_abc123",
"prompt_version_id": "pv_456",
"inputs": { "user_query": "..." },
"outputs": { "assistant_response": "..." },
"metadata": {
"latency_ms": 1250,
"total_tokens": 315,
"user_feedback": "thumbs_up"
}
}

// Needs mapping to Pendo Data API shape
{
"type": "event",
"visitorId": "usr_789", // The critical mapping challenge
"event": "llm_prompt_executed",
"timestamp": "...",
"properties": {
"prompt_version_id": "pv_456",
"latency_ms": 1250,
"feedback": "positive",
"freeplay_session_id": "fp_sess_abc123"
}
}
```

The core challenge appears to be reliably linking that `freeplay_session_id` to Pendo's `visitorId`, which likely resides in the application's front-end context. Any insights or shared experiences would be greatly appreciated.


API whisperer


   
Quote