{"id":32226,"date":"2021-12-09T12:43:27","date_gmt":"2021-12-09T11:43:27","guid":{"rendered":"https:\/\/www.sms77.io\/docs\/third-party-solutions\/agile-crm\/"},"modified":"2021-12-10T11:00:30","modified_gmt":"2021-12-10T10:00:30","slug":"agile-crm","status":"publish","type":"docs","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/agile-crm\/","title":{"rendered":"Agile CRM"},"content":{"rendered":"<p>Agile CRM offers great flexibility via their tool for <a href=\"https:\/\/www.agilecrm.com\/marketing-automation\/\" target=\"_blank\" rel=\"noopener\">marketing automation<\/a>. In this document we will briefly explain you how to send a SMS each time a contact has been created. The workflow can be adjusted to meet most requirements with just a few tweaks.<\/p>\n<p>Open up your Agile CRM administration panel and click on <i>Automations<\/i>. If the navigation pane is condensed, it is labeled with the cog icon.<\/p>\n<p>Choose your event of choice. We will focus on the event named <i>Contact Added<\/i>, which fires every time a contact has been created.<br \/>\nPress <i>Go<\/i> and click <i>JSON IO<\/i> on the second page of actions located in the actions pane on the left side.<\/p>\n<h2>Request URL<\/h2>\n<p>We need to set the URL for communicating with the sms77 API in a secure manner. Set <i>URL<\/i> to <b>https:\/\/gateway.sms77.io\/api\/sms<\/b>.<\/p>\n<h2>Request Method<\/h2>\n<p>Setting the <i>Method type<\/i> defines the request method. Make sure it is set to <b>Post<\/b>.<\/p>\n<h2>Request Parameters<\/h2>\n<p>We must add the two required <i>Params<\/i> which are required for the API request.<\/p>\n<h3>Message Text<\/h3>\n<p>Set the <i>key<\/i> to <b>text<\/b>.<br \/>\nSet the <i>value<\/i> to <b>A new contact with email {{email}} was created.<\/b>.<br \/>\nSee the <i>{{email}}<\/i> part? It gets replaced with the contacts email, if set. It is powered by <a href=\"https:\/\/mustache.github.io\/mustache.5.html\" target=\"_blank\" rel=\"noopener\">mustache templates<\/a> and offers lots of possibilities.<\/p>\n<h3>Message Recipient<\/h3>\n<p>Set the <i>key<\/i> to <b>to<\/b>.<br \/>\nSet the <i>value<\/i> to the recipient number who should receive the SMS, e.g. <b>+491771783130<\/b>.<\/p>\n<h2>Request Headers<\/h2>\n<p>We need to add a few <i>Headers<\/i> for communication with the API to succeed.<\/p>\n<h3>Accept<\/h3>\n<p>Set the <i>key<\/i> to <b>Accept<\/b>.<br \/>\nSet the <i>value<\/i> <b>application\/json<\/b>.<\/p>\n<h3>Content-Type<\/h3>\n<p>Set the <i>key<\/i> to <b>Content-Type<\/b>.<br \/>\nSet the <i>value<\/i> <b>application\/json<\/b>.<\/p>\n<h3>X-Api-Key<\/h3>\n<p>Set the <i>key<\/i> to <b>X-Api-Key<\/b>.<br \/>\nSet the <i>value<\/i> to your sms77 API key, which you can find in your <a href=\"https:\/\/app.sms77.io\/developer\" rel=\"noopener\">developer dashboard<\/a>, e.g. <b>aBc129518JGewgghrwGWg42GEWmg4h4H4mERgeOekke<\/b>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/staging.seven.io\/wp-content\/uploads\/create.png\" alt=\"Agile CRM: Create JSON IO for Automation\" width=\"1679\" height=\"1256\" class=\"alignnone size-full wp-image-32231\" srcset=\"https:\/\/www.seven.io\/wp-content\/uploads\/create.png 1679w, https:\/\/www.seven.io\/wp-content\/uploads\/create-300x224.png 300w, https:\/\/www.seven.io\/wp-content\/uploads\/create-1024x766.png 1024w, https:\/\/www.seven.io\/wp-content\/uploads\/create-350x262.png 350w, https:\/\/www.seven.io\/wp-content\/uploads\/create-250x187.png 250w, https:\/\/www.seven.io\/wp-content\/uploads\/create-600x449.png 600w, https:\/\/www.seven.io\/wp-content\/uploads\/create-768x575.png 768w, https:\/\/www.seven.io\/wp-content\/uploads\/create-400x299.png 400w, https:\/\/www.seven.io\/wp-content\/uploads\/create-535x400.png 535w, https:\/\/www.seven.io\/wp-content\/uploads\/create-200x150.png 200w, https:\/\/www.seven.io\/wp-content\/uploads\/create-500x374.png 500w\" sizes=\"(max-width: 1679px) 100vw, 1679px\" \/><\/p>\n<p>We are done setting up the JSON IO action. Click on <i>Save<\/i> and use drag &#038; drop to connect the <i>Start<\/i> node with out <i>JSON IO<\/i> node which we have just created.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/staging.seven.io\/wp-content\/uploads\/automation_add.png\" alt=\"Agile CRM: Automation Overview\" width=\"1679\" height=\"1256\" class=\"alignnone size-full wp-image-32229\" srcset=\"https:\/\/www.seven.io\/wp-content\/uploads\/automation_add.png 1679w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-300x224.png 300w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-1024x766.png 1024w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-350x262.png 350w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-250x187.png 250w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-600x449.png 600w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-768x575.png 768w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-400x299.png 400w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-535x400.png 535w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-200x150.png 200w, https:\/\/www.seven.io\/wp-content\/uploads\/automation_add-500x374.png 500w\" sizes=\"(max-width: 1679px) 100vw, 1679px\" \/><\/p>\n<h2>Testing<\/h2>\n<p>After setting up our request let&#8217;s make sure it is actually working. Open up the <i>Test<\/i> tab and click on the link. An output similar to the following should pop up.<\/p>\n<p>You are now good to go. Every time a new contact gets added, the number defined in the <i>to<\/i> parameter will receive a SMS.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/staging.seven.io\/wp-content\/uploads\/test_server_response.png\" alt=\"Agile CRM: Automation SMS Test Response\" width=\"1694\" height=\"1256\" class=\"alignnone size-full wp-image-32233\" srcset=\"https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response.png 1694w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-300x222.png 300w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-1024x759.png 1024w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-350x260.png 350w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-250x185.png 250w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-600x445.png 600w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-768x569.png 768w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-400x297.png 400w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-539x400.png 539w, https:\/\/www.seven.io\/wp-content\/uploads\/test_server_response-200x148.png 200w\" sizes=\"(max-width: 1694px) 100vw, 1694px\" \/><\/p>\n","protected":false},"featured_media":0,"parent":17826,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-32226","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/32226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/comments?post=32226"}],"version-history":[{"count":3,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/32226\/revisions"}],"predecessor-version":[{"id":32235,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/32226\/revisions\/32235"}],"up":[{"embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/17826"}],"next":[{"title":"Beehive","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/beehive\/","href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/27953"}],"prev":[{"title":"RosarioSIS","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/rosariosis\/","href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/32170"}],"wp:attachment":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/media?parent=32226"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/doc_tag?post=32226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}