- Set up a workspace with peers (user and assistant)
- Ingest messages from across multiple sessions
- Query the reasoning Honcho produces to get synthesized insights about the user
Running the code below requires an API key. Create and account and get your API key at app.honcho.dev under “API KEYS”.Every new tenant gets $100.00 in free credits on sign up. The code below costs ~$0.04 to run, so don’t worry—still plenty of free credits for iterating.
1. Install the SDK
2. Initialize the Client
The Honcho client is the main entry point for interacting with Honcho’s API. It uses a workspace calleddefault unless specified, so let’s create a first-honcho-test workspace for this quickstart.
3. Create Peers
4. Add Messages to Sessions
We’ve generated an example conversation dataset with 14 messages across 4 sessions. At a high level, the conversation contains a user chatting with an assistant to get help debugging software infrastructure problems for work and jam strategy on a side project they’re working on. Spoiler alert—the user is way more interested in their side project. Create a file calledconversation.json and add the content in the accordion below. Then we’ll loop through the sessions and messages in that file and write them to Honcho.
Example conversation.json
Example conversation.json
Example Conversation
5. Query for Insights
Now ask Honcho what it’s learned—this is where the magic happens:User is a personal finance app developer building a personalized finance assistant that’s generating real demand (friends are already asking when they can pay). They’re notably thoughtful about product design, carefully considering the UX balance between making users feel “known” versus “surveilled” when their app proactively surfaces remembered context like savings goals and spending regrets. They’re business-minded and working through unit economics early, exploring a $5/month subscription model with usage-based cost structure focused on insight generation frequency rather than data storage—though they wish they had more time to dedicate to the project.Honcho synthesizes signal by reasoning about the user to draw conclusions beyond what was explicitly stated. It identifies the user as “notably thoughtful about product design”, “business-minded” from the discussion of unit economics, and surfaces the signal that they desire to work on the project more. This is rich personal context for domain-specific agents to do what they want with.
- A life coach agent might see “they wish they had more time to dedicate to the project” and “friends are already asking when they can pay” and ask “have you thought about what it would take to go full-time?”
- A productivity agent might see the same pattern and say “let’s protect your weekend time for the finance app.”
- A financial advisor agent might see it and ask “what runway would you need to make the leap?”
Next Steps
You just saw how Honcho reasons about data to build rich peer representations. In this quickstart, you:- Set up a workspace with peers (user and assistant)
- Ingested messages across multiple sessions
- Queried the reasoning to get synthesized insights about the user
Full Scripts
Full Scripts