### Initialize Guided Conversations SDK Source: https://help.zoho.com/portal/en/kb/desk/developer-space/guided-conversations/flutter-sdk/articles/how-to-integrate-the-guided-conversations-sdk-with-flutter-apps Call the `ZohoGCSDK.show` method with your Organization ID, Bot ID, and Domain to display the guided conversations interface. ```dart import 'package:zoho_gc_sdk/zoho_gc_sdk.dart' show ZohoGCSDK; ZohoGCSDK.show(orgId, botId, domain) ``` -------------------------------- ### Install CocoaPods Dependencies Source: https://help.zoho.com/portal/en/kb/desk/developer-space/business-messaging/ios-sdk/articles/how-to-integrate-the-business-messaging-sdk-with-your-ios-app After updating your Podfile, execute this command in the Terminal to install the specified SDKs and manage project dependencies. ```bash $ pod install ``` -------------------------------- ### Substring Function Example Source: https://help.zoho.com/portal/en/kb/desk/customization/layouts-and-fields/articles/creating-formula-fields-in-zoho-desk Use the Substring function to extract a portion of a string based on a start position and length. Useful for parsing data. ```zoho_formula Substring(CustomerMessage, 0, 10) ``` ```zoho_formula Substring('Login issue encountered', 0, 10) returns "Login issu" ``` -------------------------------- ### Initialize and Show Guided Conversations Source: https://help.zoho.com/portal/en/kb/desk/developer-space/guided-conversations/flutter-sdk/articles/how-to-integrate-the-guided-conversations-sdk-with-flutter-apps Initialize the SDK with your Organization ID, Bot ID, and Domain, then display the conversation. ```APIDOC import 'package:zoho_gc_sdk/zoho_gc_sdk.dart' show ZohoGCSDK; // Replace with your actual values String orgId = "YOUR_ORG_ID"; String botId = "YOUR_BOT_ID"; String domain = "YOUR_DOMAIN"; ZohoGCSDK.show(orgId, botId, domain); ``` -------------------------------- ### Update Guided Conversations Session Variables Source: https://help.zoho.com/portal/en/kb/desk/developer-space/asap/android-sdk/articles/how-to-display-the-help-center-s-services-as-modules-on-your-android-app Updates existing session variables for Guided Conversations. ```APIDOC ## Update Guided Conversations Session Variables ### Description Updates session variables for Guided Conversations. ### Method Signature `ZohoDeskPortalChatKit.updateGCSessionVariable(context, sessionVariables)` ### Parameters * **context** (Context) - Required - The application context. * **sessionVariables** (ArrayList>) - Required - A list of session variables to update. Each variable is a HashMap containing 'name' and 'value'. ``` -------------------------------- ### SalesIQ Initialization Callback Source: https://help.zoho.com/portal/en/kb/desk/developer-space/asap/flutter-sdk/articles/what-are-the-configuration-settings-for-the-asap-salesiq-flutter-sdk Set up configurations for the SalesIQ SDK within the `onInitialized` block of the `SalesIQInitCallback`. This callback must be set before initializing the SDK. ```APIDOC ## setSalesIQInitCallback ### Description Provides callbacks for SalesIQ SDK initialization. Use the `onInitialized` block to set up configurations after successful initialization and `onException` to handle initialization failures. ### Method Signature `ZohodeskPortalSiq.setSalesIQInitCallback(SalesIQInitCallback callback)` ### Parameters * **callback** (SalesIQInitCallback) - An object implementing the `SalesIQInitCallback` interface with `onInitialized` and `onException` methods. ### `SalesIQInitCallback` Interface * `onInitialized()`: Called when the SalesIQ SDK is successfully initialized. * `onException(String? errorMessage)`: Called when the SDK initialization fails. ### Request Example ```dart import 'package:zohodesk_portal_siq/common/SalesIQInitCallback.dart'; import 'package:zohodesk_portal_siq/zohodesk_portal_siq.dart'; class InitCallback implements SalesIQInitCallback { @override void onException(String? errorMessage) { // Handle SalesIQ Init Failure print("SalesIQ Init Failed: $errorMessage"); } @override void onInitialized() { // SalesIQ Init Success - Perform configurations here print("SalesIQ Initialized Successfully"); // Example: ZohodeskPortalSiq.setLauncherVisibility(LauncherMode.ALWAYS_VISIBLE); } } void setInitCallback() { ZohodeskPortalSiq.setSalesIQInitCallback(InitCallback()); } ``` ``` -------------------------------- ### Configure Podfile for Swift and SDK Source: https://help.zoho.com/portal/en/kb/desk/developer-space/guided-conversations/ios-sdk/articles/how-to-integrate-the-gc-sdk-within-the-ios-app Uncomment `use_frameworks!` if using Swift. Then, add the `ZohoGCSDK` pod within the target block to integrate the SDK. ```ruby # Uncomment this line if you're using Swift # use_frameworks! target 'My Sample App' do pod 'ZohoGCSDK' end ``` -------------------------------- ### Display Guided Conversations Module Source: https://help.zoho.com/portal/en/kb/desk/developer-space/asap/android-sdk/articles/how-to-display-the-help-center-s-services-as-modules-on-your-android-app Use this method to show the Guided Conversations module. Ensure you pass the current activity instance. ```kotlin ZohoDeskPortalChatKit.showGC(activity); ```