

We are now ready to build our app/API.ģ.2 App Accessed using the Route in 3.1 Bot Webhook
#Ai chatbot builder code#
Navigating to the app route/endpoint, we can see the root/default value coming from the default code in the app. Alternatively, you can create a manifest.yml file in the project folder that would include the deployment values like app name, path, buildpack etc.

Notice how the cf push command has the app name included. Choose the correct dev space (if you have more than one). Open the Terminal and logon to the API endpoint on SCP where you want to deploy your app. First, make sure you have the CF command line interface installed. However, let’s try and create the endpoint for the API that our app is going to implement. I know we did not put any code in the app yet. Navigate to app.py and change the host value from ‘localhost’ to ‘0.0.0.0’ in the generated code. The template will generate two files, requirements.py and app.py with default code for a Flask object instance as well as a basic route definition. We will start by creating a new Blank Flask Web Project in VS Code. It offers a Python Development workload (extension) that comes with the necessary Python libraries and frameworks installed (even Flask). Microsoft Visual Studio Code (VS Code) is a favorite amongst application developers today. Once the survey session is created, it is possible to use this API to make updates to the survey and record responses.įor the purpose of the scenario presented in this blog series, we are going to create a Python app that would use the Qualtrics Survey Sessions API to create the survey session and orchestrate the survey flow.īut before we start with the development of our app, we need to choose an IDE. Fortunately, Qualtrics offers a Survey Sessions API that enables creation of a survey session outside of the Qualtrics platform. An already engaged end-user inside a conversation with the chatbot would consider survey questions coming from chatbot as part of the overall chatbot experience. But what if, there is a need to present the survey in a different UI altogether? This is particularly the case with a chatbot where presenting a survey link would force the end-user to navigate away from the chatbot. Qualtrics surveys are typically presented to end-users as a link where the survey opens inside the Qualtrics platform. Cool, eh? Let’s go! Building the Qualtrics Survey and App
#Ai chatbot builder series#
Yes, here comes the most exciting blog post in this series where we are going to create a Qualtrics survey and then programmatically (Phython-ically) create the survey session inside the chat itself.
