{"id":1217,"date":"2024-02-12T15:58:22","date_gmt":"2024-02-12T22:58:22","guid":{"rendered":"https:\/\/salesforcechronicles.com\/?p=1217"},"modified":"2024-09-09T23:03:23","modified_gmt":"2024-09-10T06:03:23","slug":"omnistudio-google-api-integration","status":"publish","type":"post","link":"https:\/\/salesforcechronicles.com\/?p=1217","title":{"rendered":"How to integrate Google API with salesforce OmniStudio"},"content":{"rendered":"\n<p><strong>Introduction<\/strong><\/p>\n\n\n\n<p>We will explore the process of setting up Google Maps Integration within a typeahead block. This powerful feature not only enhances the user experience but also streamlines the input of location-based information. Follow these step-by-step instructions to seamlessly integrate Google Maps Integration into your typeahead blocks.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Open an existing Omni script.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"218\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1218\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image.png 784w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-300x83.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-768x214.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/figure>\n\n\n\n<p><strong>Step 2:<\/strong> Drag and Drop the Typeahead Block. <\/p>\n\n\n\n<p>Next, you will need to drag and drop a typeahead block element onto the appropriate step within your omniscript. This element will be the building block for incorporating the Google Maps Integration functionality.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"314\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-1.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1219\" style=\"width:726px;height:auto\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-1.png 802w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-1-300x117.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-1-768x301.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p><strong>Step 3:<\/strong> Add Text Elements:<\/p>\n\n\n\n<p>Within the typeahead block, add text elements according to the specific scenarios you&#8217;re working with. If you anticipate dragging and dropping four elements, ensure you have corresponding text elements for each.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"384\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-2.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1220\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-2.png 904w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-2-300x127.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-2-768x326.png 768w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<p><strong>Step 4:<\/strong> Enable Google Maps Autocomplete:<\/p>\n\n\n\n<p>To enable Google Maps integration, you need to activate the Google Maps Autocomplete feature.&nbsp;<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Access the Google Maps Autocomplete Accordion:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the Google Maps Integration accordion within the typeahead block. This will reveal additional settings to configure the Integration behaviour.<\/li>\n\n\n\n<li>Provide the Google Maps API Key in the section.( Refer the following url for registering the google maps api key https:\/\/developers.google.com\/maps\/get-started)<\/li>\n\n\n\n<li>Set Country Filter to the desired location<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"314\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-3.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1221\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-3.png 440w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-3-300x214.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/figure>\n\n\n\n<p><strong>Step 6:<\/strong> Add New Mappings:<\/p>\n\n\n\n<p>In Google Maps Transformation, click on &#8220;Add New Mappings.&#8221; This allows you to define mappings for additional child elements, ensuring comprehensive integration of Integration data. These mappings link the child element names to corresponding Google response nodes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"254\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-4.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1222\" style=\"width:726px;height:auto\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-4.png 904w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-4-300x84.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-4-768x216.png 768w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"494\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-5.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1223\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-5.png 394w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-5-239x300.png 239w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/figure>\n\n\n\n<p><strong>Conclusion:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"360\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-6.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1224\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-6.png 904w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-6-300x119.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2024\/02\/image-6-768x306.png 768w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<p>By following these straightforward steps, you can effortlessly set up Google Maps Integration within your typeahead block. This integration significantly enhances the user experience, simplifies data entry, and ensures accurate location-based information. Implement this feature and provide your users with a seamless and efficient way to input location data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction We will explore the process of setting up Google Maps Integration within a typeahead block. This powerful feature not only enhances the user experience&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1225,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1,30],"tags":[],"class_list":["post-1217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-omnistudio"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts\/1217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1217"}],"version-history":[{"count":6,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts\/1217\/revisions"}],"predecessor-version":[{"id":1808,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts\/1217\/revisions\/1808"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/media\/1225"}],"wp:attachment":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}