Codegen
Send events to Freshpaint with Codegen
Avo generates a type-safe function for each event in your plan. You connect Freshpaint through the destination interface: callbacks you fill in to pass each event to the Freshpaint SDK.
The destination interface works with any event-based destination, so Freshpaint can sit next to your other tools.
Docs: Destinations in Avo CodegenSet it up
- In Avo, create a destination and set its mode to Destination Interface in your source’s Codegen setup.
- Pull the generated code with the Avo CLI.
- Initialize Avo with your destination and fill in the callbacks that send to Freshpaint.