How to send Zoho Voice SMS via Zoho Creator?
Follow the steps below to send automatic SMS via a Zoho Voice number directly from your Zoho Creator solutions.
Login to https://creator.zoho.com/
To create connectors for your Creator solution:
Click CUSTOM CONNECTOR -> Create New
Enter the connector name and save.
Enter General connector details such as Connector name , Connector link name , Description, and Logo-> Click Save and continue
Defines the authentication settings of the Custom Connector, such as Authentication Type, Authentication Parameters and Scopes. Choose OAuth2 Authentication as the Authenticatio type then click Save and continue.
The Authentication Parameters appears in the subsequent page as shown below:
Copy the Callback URL into your clipboard to be updated in the API console.
To update the authentication parameters, open a new tab in parallel go to 'https://api-console.zoho.com/'
This will take you to the Zoho API console where you can directly access and configure the specific authentication API ZCreatorSMS.
Click on Add Client and then choose Server-based Applications
Add Client name and Homepage URL. Paste the callback url that you copied from your creator page into the Authorized Redirect URL and click Create.
Once the new client is created, Copy the Client ID and the Client Secret values that are automatically generated from the Client Secret tab.
Authorization URL : https://accounts.zoho.com/oauth/v2/auth
Refresh Token URL: https://accounts.zoho.com/oauth/v2/token
Token URL : https://accounts.zoho.com/oauth/v2/token
Revoke Token URL : https://accounts.zoho.com/oauth/v2/revoke
Then click the Save and Continue button.
In the Creator page, now select the OAuth Scopes menu under the Security section and click Add Scope.
Key in the scope details as follows:
Scope Display Name : ZohoVoice Send SMS
Scope Value : ZohoVoice.sms.ALL
The first step requires you to create the connection with the specified parameters.
The next step requires you to authorize the connection for it to be functional.
Immediately after the connector is ready, Add Connection button appears, Click on Add Connection.
For a connector with OAuth2 type authentication, you will be prompted to select Scope for Connection before creating a connection.
Click Create and Authorize. The connection will be created and prompted for authorization.
Note:
You cannot edit or delete scopes once you added connections with the Custom Connector.
Click Authorize and proceed to authorize access to the selected service.
Make sure you provide the name for the Connection as "zohovoice_sms" then it will redirect to a new page.
Now, go to Solutions. click on Create or Edit Solution
Click on the Workflow button at the top to navigate to the workflow dashboard.
Select While using the form option to specify when you need to trigger the workflow.
Key in the required details:
Click Add New Action. The actions associated with the chosen form event are displayed.
Choose Deluge Script.
Info:
Connections using Custom Connectors should be invoked using Deluge invoke URL task, mentioning the respective action API, for any specific scenario/workflow as given in the code below.
Paste the code below and save. Finally Click Done to exit the workflow builder.
response = Map();
dataTxt = Map();
dataTxt.put("message","this is test SMS");
dataTxt.put("customerNumber",input.{FORM_FILED});
dataTxt.put("senderId","+1484292YYYY");
resp = invokeurl
[
url :"https://voice.zoho.com/rest/json/v1/sms/send"
type :POST
parameters:dataTxt.toString()
headers:{"Content-Type":"application/json"}
connection:"zohovoice_sms"
];
info resp;
Inside the code:
input.{FORM_FILED} serves as the placeholder for the numbers submitted via your Zoho Creator solution
Hardcode the zoho Voice number that is supposed to send messages near the variable senderID
For more convenience, it is best to have the connector name as zohovoice_sms throughout the setup.
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.