Contact form 7 extension for Avochato

What is Avochato?

Avochato is a communication platform designed for teams in sales, support, healthcare, and operations. It offers a shared inbox and dedicated phone numbers, enabling teams to send and receive text messages and calls with customers in real-time. By centralizing communication into a collaborative workspace, Avochato enhances both internal team coordination and external customer engagement, making client communication seamless, responsive, and efficient.

Contact Form 7 used for?

Contact Form 7 is a popular WordPress plugin that allows you to easily add contact forms to your website. It provides a simple way for your visitors or clients to get in touch with you directly through your site. Beyond basic communication, it’s also a great tool for collecting leads and email addresses, helping you grow your email list and stay connected with potential customers.

Contact form 7 extension for Avochato

We’ve previously done extensive work integrating Contact Form 7 with Avochato using PHP, leading to the development of our custom Contact Form 7 extension for Avochato. So, we thought—why not share some of our working and well-prepared code examples with you? This integration allows you to automatically send form submissions from your website directly to Avochato, enabling real-time communication and better lead management.

In this post we will use PHP and cURL to connect Contact Form 7 with Acochato.

  
  // Request Method to use in the script
  function apifixer_remoteDATA($url, $data = false){
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $url);
     //If receives Data than POST else GET
     if ($data){
       curl_setopt($ch, CURLOPT_POST, true);
       curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
       curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0
       (compatible; MSIE 8.0; Windows NT 6.0)");
       curl_setopt($ch, CURLOPT_HTTPHEADER, array(
       'Content-Type: application/json'));
       curl_setopt($ch, CURLOPT_HEADER, false);
       curl_setopt($ch, CURLOPT_NOBODY, false);
      }
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
      curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 50);
      $data = curl_exec($ch);
      curl_close($ch);
      return $data;
   }
   // Trigger the script on CONTACT FORM 7 Mail Sent
   add_action('wpcf7_mail_sent', 'apifixer_avochato', 10, 1);
   function apifixer_avochato($contact_form){
      $data = array();
      // Add your Avochato credentials below
      $data['auth_id'] = 'your Auth ID';
      $data['auth_secret'] = 'Your Auth Secret';
      //Change your contact form 7 id here
      $_contact_form_7_id = '1951';
      //to get form id when form is posted
      $form_id = $contact_form->id();
      //to get posted data in associative array
      $submission = WPVF7_Submission::get_instance();
      $posted_data = $submission->get_posted_data();
      //urls to link avochato
      $url_contacts = "https://www.avochato.com/v1/contacts";  //url to add contact   
      in avochato
      $url_messages = "https://www.avochato.com/v1/messages";  //url to send message     
      using avochato
      //matches the contact form id with posted form id
      if ($form_id == $_contact_form_7_id){
      //you can write your message to be sent using Avochato
      $posted_data['message'] = 'Hey ' .  $posted_data['your-name'] . ',
      Thanks for contacting apifixer.com Your wholesale quote for
      '.$posted_data['qty'] . ' ' . $posted_data['towel'] . '
      will be coming to you shortly!';
      $data['phone'] = $posted_data['your-phone'];
      //Send Text Message using Avocahto
      if ($data['phone']){
         apifixer_remoteDATA($url_messages, json_encode($data));
      }
      $data['name']     = $posted_data['your-name'];
      $data['email']    = $posted_data['your-email'];
      $data['company']  = $posted_data['your-company'];
      $data['towel']    = $posted_data['towel'];
      $data['quantity'] = $posted_data['qty'];
      $data['delivery'] = $posted_data['delivery'];
      //Add a Contact in Avocahto
      apifixer_remoteDATA($url_contacts, json_encode($data));
    }
  }


Explanation:

This code provides a complete integration between Contact Form 7 and the Avochato communication platform by using WordPress hooks and the Avochato API. The custom function apifixer_remoteDATA() is a utility that abstracts the logic for sending API requests via cURL. It dynamically switches between GET and POST methods depending on whether data is passed to it, and it’s configured with common headers and cURL options to support JSON data transmission securely and efficiently.

The second part of the script uses the wpcf7_mail_sent action hook to trigger custom functionality after a Contact Form 7 submission. It checks whether the form ID matches a specific form (ID 1951 in this case). When matched, it pulls the submitted data using WPCF7_Submission::get_instance() and prepares two API requests to Avochato:

  1. Sending a personalized SMS message to the user using the messages endpoint. The message thanks the user and confirms receipt of their wholesale quote inquiry.
  2. Adding or updating a contact in the Avochato contact list using the contacts endpoint, which includes their name, email, phone number, company name, product details, quantity, and delivery date.

This integration ensures that leads or inquiries submitted via Contact Form 7 are immediately acknowledged through SMS, while also syncing their contact details into Avochato’s CRM system. It’s highly useful for businesses looking to streamline communication, improve response times, and manage customer interactions in one unified workflow.

With minimal modification (such as updating form ID, Avochato credentials, and field names), this code can be customized to work with other forms and use cases where instant messaging and contact syncing are required.

In conclusion, this integration bridges Contact Form 7 with Avochato, allowing automatic contact creation and real-time message sending whenever a form is submitted on your website. It’s a powerful way to enhance customer engagement, streamline communication, and ensure no lead goes unanswered. If you’d like help setting this up or want a custom plugin for your own use case, feel free to reach out.

How to Integrate Contact form 7 with Mailchimp

Mailchimp used for?

Mailchimp is an all-in-one marketing platform designed to help businesses manage and communicate with their audience effectively. It offers tools for:

  • Email marketing campaigns
  • Audience segmentation
  • Automation workflows
  • Landing pages and forms
  • Analytics and reporting

Its user-friendly interface and powerful features make it a popular choice for both beginners and experienced marketers. By using Mailchimp, businesses can build lasting customer relationships, track campaign performance, and drive engagement — all from one central platform.

Contact Form 7 used for?

Contact Form 7 on your website provides an easy and secure way for visitors to send queries, complaints, suggestions, or feedback. It supports managing multiple forms and allows full customization of each form’s layout and content using simple HTML markup.

Additionally, Contact Form 7 supports features like:

  • AJAX-powered form submission
  • CAPTCHA integration
  • Spam filtering
  • Custom validation messages

This makes it a powerful yet lightweight solution for adding forms to your WordPress site without requiring complex setup.

Why do you need to integrate Contact Form 7 With MailChimp?

Integrating Contact Form 7 with Mailchimp helps streamline your marketing efforts by automatically sending form submissions directly to your Mailchimp email lists. Here’s why it’s beneficial:

  • Automated Contact Collection: No more manually adding leads—form submissions go straight to your Mailchimp audience.
  • Efficient Tagging: Automatically label and segment contacts for better targeting in campaigns.
  • Seamless Campaign Integration: Instantly enroll new contacts into email automation workflows like welcome series or drip campaigns.
  • Full Customization: Easily style the form to match your website’s design and branding.
  • Flexible Placement: Use shortcodes to place the form anywhere on your site—landing pages, sidebars, or footers.
  • Custom Fields Supported: Send any kind of data—names, emails, preferences—directly into Mailchimp for advanced segmentation.

This integration bridges the gap between user interaction and marketing automation, making your lead generation smarter and more efficient.

Key Features:

  • Unlimited Contact Forms: Create and manage as many forms as needed across your website.
  • Customizable Fields: Tailor form fields to collect exactly the data you need for your Mailchimp audience.
  • Unique Mailchimp API Key per Form: Assign different API keys to individual forms for advanced list management or client-specific setups.
  • Dedicated Mailing Lists: Link each contact form to a specific Mailchimp list for targeted data collection.
  • Opt-in Checkbox Support: Give users the choice to subscribe or not by adding an opt-in checkbox to your forms.
  • Single Opt-in Option: Instantly adds subscribers to your Mailchimp list without a confirmation email—ideal for faster signups.
  • Double Opt-in Option: Sends a confirmation email to ensure the user consents to join your list—great for GDPR compliance and list quality.
  • These features provide flexibility, control, and compliance, making the integration both powerful and user-friendly.

Premium Features:

  • Unlimited Mailchimp List Subscribers: No restriction on the number of contacts you can send from your forms to your Mailchimp lists.
  • Mailchimp Email Verification: Automatically validate email addresses before adding them to your list to ensure accuracy and reduce bounce rates.
  • Unlimited Mailchimp Custom Fields: Map and send unlimited custom fields from your form to corresponding fields in Mailchimp for more personalized campaigns.
  • Unlimited Mailchimp Tags and Groups: Organize subscribers efficiently by adding unlimited tags and assigning them to Mailchimp interest groups directly from your form submissions.
  • These premium features enhance your email marketing automation and list segmentation, allowing for more precise targeting and better campaign performance.

Getting Started:

Here you find a notice above on the screen �?To use PSILO | Contact Form 7 Mailchimp Extension, Please install/activate Contact Form 7 plugin First!�? as shown in the image below:

after installing and activating the Contact Form 7 plugin you can activate the PSILO | Contact Form 7 Mailchimp Extension.

3-On the left side on wordpress menu bar, go to the Contact tab where you can create a new contact form, by clicking on Add New you can add a new form as shown in the image below:

4-On creating new form you find here 5 different menu tabs:
 
In the Form tab, You can edit the form template of your contact form in the Form tab panel. HTML and Contact Form 7’s form-tags can be used in a form template.
 
A form-tag works as a placeholder for an HTML form control (e.g. a text input field) or a set of form controls (e.g. a group of checkboxes). Form-tags are replaced with HTML when rendering the form.
 
A form-tag must follow specific syntax rules. Otherwise, the form-tag won’t work correctly. Still, it is not necessary to remember the syntax because you can use the tag-generator tools to generate correct form-tags.

5-In the Connect Mailchimp tab, here is our mailchimp extension menu fields where you can set your field values like Subscriber Email that is required by Mailchimp and Subscriber Name where you can select your custom field from dropdown list that you want to post to Mailchimp API with your Subscriber Email field, after that you can add a checkbox custom name with description by simply adding input field checkbox in Form Tab and text description you want to add in checkbox label.
 
6-Then you have to insert your Mailchimp API key in the API key text field, you can get your API key from your Mailchimp account:
 
Go Inside your MailChimp account, click on your name from the bottom left side of the screen and click on your Account, After clicking on your account logo select Account & Billing as shown in the image below:

There you have to select Extras, where you can find the API key section like the image below:

After finding the API key section you can Create Your API keys as shown in the image below and then you have to copy this API key that you want to use in the extension API Key field:

7-The next step after copying the API key from your Mailchimp account and pasting it to ‘MailChimp API Key:’ field in the extension, Click the save button to save your API Key and validate if your entered API key is correct or not, if your API key is valid it will show a drop down list of your all Lists/Audiences Names that you have created in your Mailchimp account to save your subscribers details, if the entered API key is not valid it will show an error message “API key is not valid�?.

8-After selecting your Audience name from List dropdown click on the save button now you can see the Subscribers table of your Mailchimp Audience as shown in the image below:

9-In the next, here you can see two checkboxes, in the first checkbox this extension allows you to “Allow Users to Resubscribe after being Deleted or Unsubscribed?�?

While in the second checkbox we’ve added an option to use custom fields to post to Mailchimp API from Contact Form 7. After checking this checkbox and saving the form you will see multiple dropdown lists, on the left side you can see Custom Fields of Contact Form 7 and on the right side you can see the Custom Fields of your mailchimp account.

Here you can select your custom form fields of contact form and map it to the custom fields of Mailchimp as shown in the image below when a user subscribe using contact form 7 filling out these form fields, these will map to mailchimp and save user data in by using these fields in your mailchimp audience lists.

We hope you’ve gained a clear understanding of the Contact Form 7 extension and how it integrates with Mailchimp. If you have any queries, need assistance, or want us to build a custom extension for your site—feel free to contact us anytime!

Contact Form 7 Extension for Ascora

Why use Contact Form 7 ?

Contact Form 7 is a free WordPress plugin that allows website owners to easily create and manage multiple contact forms on their website. The plugin provides a simple user interface that lets users create forms by adding various types of fields, such as text boxes, dropdowns, radio buttons, checkboxes, and more for more information and documentation you can visit the site https://wordpress.org/plugins/contact-form-7

What is Ascora API?

Ascora is a complete trade job management intended to smooth out the administration and tasks of developing trades and administration based organizations. Ascora empowers your business to keep on developing at an even faster speed while investing altogether less energy in administrator work. For more information you can visit official site https://www.ascora.com.au.

Getting Started:

After our successful team efforts we’ve developed an extension that will integrate Contact Form 7 with Ascora Api, by using this extension you can easily submit your site enquiries to Ascora where you can easily manage your enquiries and follow up them.

Establishing and maintaining a healthy relationship with clients and customers is essential to keep a business thriving. One of the most popular WordPress plugins that help website owners collect important data from visitors is Contact Form 7 (CF7). Ascora, on the other hand, is a robust CRM platform that caters to businesses of all sizes. Ascora leads and Ascora CRM are two of its best features that can boost a business’s performance. In this post, we will delve into the benefits of using the Contact Form 7 extension for Ascora, a new plugin that seamlessly integrates CF7 forms with Ascora leads and Ascora CRM. Our discussion will revolve around how this plugin can enhance communication and streamline the process of lead generation and customer management for businesses.

Why do you need to integrate Contact Form 7 With Ascora Api?

Contact Form 7 permits you to add subscribers to Acora Enquiries list efficiently and gives the following advantages:

  • Contact Form 7 empowers you to automate the addition and labeling of new contacts.
  • Not any more manual contact entries are required.
  • Add contacts to your automated email marketing campaigns.
  • Need a registration form to match your website’s theme? you need not worry, you can customize Contact Form 7’s design as you like.
  • Form input fields are completely manageable. Also, all information can be sent to Ascora for additional utilization.
  • Sign-up forms are more flexible with Contact Form 7. Show them anywhere you need utilizing the Contact Form 7 short-code.

Key Features:

  • Unlimited contact forms.
  • Supports customizable input fields.
  • Use a unique Ascora API key for each contact form.
  • Map desired form fields to Ascora Api
  • Multiple fields to post Subscriber’s information to Ascora

Premium Features:

  • Create Unlimited Ascora Enquiries
  • Unlimited Ascora Custom Fields
  • Ascora Follow up option
  • Upload Pictures/Files
  • Import/Export all Enquiries
  • Send Emails/Messages
  • Convert Enquiries to Quotes/Jobs
  • Open/Close Enquiries

Getting Started:

Contact Form 7 Configuration:

1- Create and save a new contact form, here in the below image you can see a shortcode text like [contact-form-7 id=”23″ title=”Ascora Form”] you have to copy this short-code and paste this code either on page in short-code block or in any other section where you want to show this Contact Form you’ve created as shown in the image below:

Paste CF7 Short-code on New Page

2- After pasting this form’s short-code on page, publish the page and view page you will see a Contact Form 7 will appear on the page you’ve created in the Contact Form 7 menu.

Ascora API Configuration:

How to Generate Ascora API Key?

1- In order to generate a new Ascora Api key, go to the official site of Ascora https://ascora.com.au/

2- Login to your account if you have already created an account on Ascora site else you can Create a new account by simply signing up on the site.

Note: Ascora will provide a startup login free trial of 14 Days after that period you have to purchase the premium package in order to continue using Api.

Ascora Dashboard

3- After successful login, you will see the Dashboard and multiple site options in the menu bar like Scheduler, Map, Tracking and at last option Administration, Click on the Admininstration menu from menu bar, here you will see a dropdown options list where you can select and manage Ascora settings, in this menu the last option you will see Api Settings click this as in the image below:

Ascora Dashboard

4- Clicking on the Api settings menu you will find Generate New Api Key field here, by clicking this button you can generate new Api Key that will connect your contact Form 7 Fields with Ascora Api to Post data from Contact Form 7 to Ascora as like below:

Generate Ascora Api Key

5- The last step in this part is to copy generated Api Key from here and save this Api key.

Connect Contact Form 7 with Ascora Api:

To connect Contact Form 7 with Ascora we will use our extension PSILO | Contact Form 7 Extension For Ascora using below steps:

1- Go to your WordPress site’s wp-admin where you have installed Contact Form 7 plugin.

2- Download & Install Contact Form 7 Extension Ascora By Buying/Ordering the Plugin in $10 USD from here Buy/Order Plugin

3- Activate Contact Form 7 First before Activating the Ascora extension because this extension only works after Contact Form 7 is activated, if you activate this extension without activating the Contact Form 7, it will show a notice on your site’s Dashboard and automatically deactivated as shown in the image below:

Activate Contact Form 7 / PSILO | Contact Form 7 Extension For Ascora

4- After Activating both plugins you have to open your Contact Form 7 Settings Page where you have created the form to connect with Ascora Api, here you will find an additional tab with Contact Form 7 tabs as Ascora Settings as you can see in the image below:

Ascora Settings Tab on Contact Form 7 Settings Page

5- Click on Ascora Settings tab, here you are seeing an input field “Enter Ascora Api Key” here you have to enter the Ascora Api key you have generated and saved from Ascora Api site, click save settings it will check if your Api key is correct or not.

Ascora Settings Tab

6- If the key is valid it will show two dropdown options like “Contact Form Fields” (All input fields you have created in your Contact Form 7 Form tab) Option and “Ascora Api Field”(Ascora Api Fields).

Ascora Settings Page

7- Now on this tab you have to select your Contact Form 7 each Field you want to map/post to Ascora Field on Api through form submission it will post the form fields data to the Api Enquiries table Columns where you can manipulate these inquiries as shown in the image below:

Map Contact Form 7 & Ascora Api Fields

8- Save the Settings by clicking Save button on the settings menu and open the page where you have pasted the short-code of this contact form created earlier.

9- Here you will on the page a form will appear just fill the form and submit the form it will show success message that your mail has been sent successfully.

10- At the end you have to open Ascora Api site Dashboard and here you will find “Enquiries” option in menu bar if the form and settings are saved correctly you will see here all Enquiries created through Contact Form 7 as shown in the image below:

Ascora Enquiries

Here’s all hope you will enjoy using this extension#ascora #cf7 #wordpress #plugin #crm #contactform7 #leadgeneration #customerrelationshipmanagement #businessautomation #webdevelopment #onlinemarketing #digitalmarketing #smallbusiness #entrepreneur #productivity #yashapifixer