You can use your PostHog event data to create and update contacts in Attio. Here's everything you need to get started.
Requirements
Using this requires either PostHog Cloud with the data pipelines add-on, or a self-hosted PostHog instance running a recent version of the Docker image.
Configuring Attio
First, create a new access token in your Attio workspace. You’ll need to set read-write on the Records
and Object Configuration
scopes so that PostHog can communicate with Attio.
Close the scopes section and copy your new access token for the next step.
Configuring PostHog’s Attio destination
- In PostHog, click the Data pipeline tab in the left sidebar.
- Click the Destinations tab.
- Click New destination and choose Attio's Create button.
Paste in your access token and then add any other values you want to pipe from PostHog person properties into Attio, using additional person attributes.
Filtering
At a minimum, you should filter to only send events that have an email property set, as Attio will use this to identify contacts.
Testing
Once you’ve configured your Attio destination, click Start testing to verify everything works the way you want. Switch off Mock out async functions in order to send a test event to Attio and see a new record.
Option | Description |
---|---|
Attio API Key Type: string Required: True | Check out this page on how to get your API key: https://attio.com/help/reference/integrations-automations/generating-an-api-key |
Email of the user Type: string Required: True | Where to find the email for the contact to be created. You can use the filters section to filter out unwanted emails or internal users. |
Additional Person attributes Type: dictionary Required: True | This persons keys should be the slugs or IDs of the attributes you wish to update. For information on potential custom attributes, refer to the attribute type docs: https://developers.attio.com/docs/attribute-types |
FAQ
Is the source code for this destination available?
PostHog is open-source and so are all the destination on the platform. The source code is available on GitHub.
Who maintains this?
This is maintained by PostHog. If you have issues with it not functioning as intended, please let us know!
What if I have feedback on this destination?
We love feature requests and feedback. Please tell us what you think.
What if my question isn't answered above?
We love answering questions. Ask us anything via our community forum.