Deluge: Ready-to-use Artificial intelligence tasks

Deluge: Ready-to-use Artificial intelligence tasks

Hello everyone,

AI in business is evolving. We have slowly begun to trust machines with intellectual tasks that are usually performed by humans. Keeping up with the trend, Deluge offers a set of built-in artificial intelligence tasks for prediction and language processing operations. In this post, let us take a look at the existing Deluge AI tasks and the new addition to the set - zoho.ai.translate.

AI task
Description
Interprets the input text to predict if it is a positive, negative, or neutral emotion.
Identifies the language of the input text.
Provides device, network, location, and formatting information of the input phone number.
Performs Optical Character Recognition (OCR) operation on the input images and PDFs.
Extracts the parameters relevant to the specified keyword from the input text.
Splits the input address into individual components.
Translates the input text into the specified language.

New AI task - zoho.ai.translate

This task translates the input text into the specified language.

Syntax
  1. response = zoho.ai.translate(<input_text>, <target_language>, [source_language]);

where:
  • input_text is the text that needs to be translated.
  • target_language is the language in which the input_text needs to be translated
  • source_language is the language of the input_text. This is an optional parameter. When no value is supplied to this parameter, it assumes English.

Example 1: Predict language of a customer feedback, translate to English, and analyze its sentiment

Step 1:
Determine the language of the customer feedback stored in the variable feedback using the predict language AI task.
  1. feedback = "Estou muito satisfeito com o seu serviço. Ansioso por mais anos de parceria. Obrigado";
  2. predict_language_response = zoho.ai.predictLanguage(feedback);

The predict language task returns response in the following format in which the prediction result is stored against the key - predictionProbabilities:
  1. {
  2. "data": { 
  3. "items": [ { 
  4. "predictionProbabilities": { 
  5. "pt": 1 
  6. }, 
  7. "queryValue": <input_text> 
  8. } ] }, 
  9. "message": "OK", 
  10. "status": 200 
  11. }

Step 2:
By the end of this step, the most probable language will be stored in the variable - predicted_language.
  1. predicted_language= predict_language_response.get("data").get("items").get(0).get("predictionProbabilities").Keys();

Note: The response of zoho.ai.predictLanguage task may predict more than one language for an input text. In that case, you can iterate the response to find the language that has the highest probability using the for each and if statements.
 
Step 3:
Translate the customer feedback to English using zoho.ai.translate task.
  1. translate_response = zoho.ai.translate(feedback, "en", predicted_language.toString());
 
Step 4:
Fetch the translated text from the response using get function.
  1. translated_text = translate_response.get("translation").get(0).get("translate"); 

Step 5:
Predict if the feedback is positive, negative, or neutral using analyse sentiment AI task.
  1. sentiment = zoho.ai.analyseSentiment(translated_text);
  2. info sentiment;

Example 2: Parse an address and update a lead's address fields in Zoho CRM

Step 1:
Parse the input address using the parse address AI task.
  1. address = "Estancia IT Park, GST Road, Vallancherry Village, Chengalpattu, Kanchipuram district, Tamil Nadu, India 603202";
  2. parse_address_response = zoho.ai.parseAddress(address);
 
Step 2:
Fetch the components from the response of the AI task using get function.
  1. components = parse_address_response.get("data").get("items").get(0);
 
Step 3:
Construct a map to hold the components fetched by parsing the input address against their respective Zoho CRM field link names.
  1. input_map = Map();
  2. input_map.put("Street", components.get("road"));
  3. input_map.put("City", components.get("city"));
  4. input_map.put("State", components.get("state"));
  5. input_map.put("Zip_Code", components.get("postcode"));
  6. input_map.put("Country", components.get("country")); 

Step 4:
Update the required lead using Zoho CRM - update record integration task.
  1. response = zoho.crm.updateRecord("Leads", 692969000001050002, input_map);
  2. info response ;

Note
  • The prediction results of Deluge AI tasks may not be accurate, which is also the case with any AI prediction. However, we are working on improving this.
  • The results are dynamic. The same script may produce different outcomes at different times based on how much the machine has learned.











                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation
                                        • Sticky Posts

                                        • Function #41: Sync Associated Subforms!

                                          Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now