hi, noted DF CX doesn't have inline editor to connect to firebase as was done at DF ES, any solution?
Based on your followup question, it seems that the difficulty you’re facing is the connectivity of the Firebase database with the webhook.
Upon checking the webhook configuration screenshot in your CX agent, it looks like the webhook URL used is the URL for the database and not from a deployed function.
With that, you would need to deploy a function either in Google Cloud Functions or Cloud Functions for Firebase as mentioned in previous response and update your webhook code to connect your firebase database by initializing it.
To connect to your database, you need to first initialize your firebase database.
To initialize, you can try to implement this code:
var config = {
apiKey: "apiKey", // your api key
authDomain: "projectId.firebaseapp.com", // your authDomain
databaseURL: "https://databaseName.firebaseio.com", // your databaseURL
storageBucket: "bucket.appspot.com"
};
firebase.initializeApp(config);
For more information on this, please refer to this Initialize the Realtime Database JavaScript SD document.
Once you finish initializing your firebase database in your webhook code, then you may use the function URL, if the webhook is deployed using Firebase Functions or Google Cloud Functions, as the webhook URL for your agent.
Note that webhook code doesn't have to be on Google Cloud Functions or Cloud Functions for Firebase. Kindly make sure that your webhook service accepts JSON requests and returns JSON responses.
To get information on a certain page, you may create a condition route in which you can call the webhook once the condition evaluates to true. For example, in $page.params.status = “FINAL”, in your fulfillment, you may enable webhook and extract the value of your page parameter/s using the pageInfo.formInfo.parameterInfo or sessionInfo.parameters field in webhook request.
In addition, an Authentication can be added to secure your webhook. This is to ensure that requests to your webhook are authorized.