Pricing
Home
Getting Started
Getting Started
  1. Home

Webhooks & Zapier

Webhooks

To add a webhook
  1. Go to the Churni integrations‚Äč
  2. Go to the "Create a new webhook" section
  3. Enter your Webhook URL
  4. Choose when your webhook will be fired (when a new session is created or when a session is completed)
Your webhook will be fired via a POST request. The body of the request will contain the JSON status of your customer session.

What data will be sent?


{   
    id: string,
    status: 'pending' | 'canceled' | 'saved',   
    saveReason: 'footer_link' | 'abandoned' | 'custom',   
    callbackURL: string,  
    createdAt: ISO8601 Date, 
    completedAt: ISO8601 Date,
    environmentID: 'production' | 'testing',   
    // Customer info that you passed when you created the session  
    customer: { 
        name: string,
        domain: string,
        id: string,
        createdAt: number, // Timestamp in ms
        email: string   
    },
   // Questions & Answers  
   questions: {
      [questionID: string]: {        
          type: 'multipleChoice',
          title: string,
          required: boolean,
          multipleAnswers: boolean,
          answers: [{
              id: string,
              index: string,
              text: string          
          }]
      },            
      [questionID: string]: {       
          type: 'text',
          title: string,
          required: boolean,
          answer: string              
      } 
  },  
  // Variables info that you passed when you created the session            
  variables: {} 
}

Zapier

The Zapier integration is currently in private beta and requires an invite.
  1. Go to the Churni Integrations
  2. Go to "Zapier"
  3. Click on "Connect"
  4. You will be invited to the private beta of our zapier integration
  5. You can then create a normal zap. Check which data will be passed to your zap
Contact us