Prompt Engineering

Modified on Tue, 30 Jan at 10:41 PM

Prompting in the Flow Section


The most convenient way of prompting your business information to your bot is in the message block during flow building. To do this, you will first have to integrate Open AI. To learn more about Open AI integration Click Here. Once integrated you can always instruct AI to perform a specific role that suits the purpose of the flow you are building. You achieve this when instructing your flow to Generate an IA Message. 


Note: You should first create the necessary Custom Fields where the AI OUTPUT message will be saved. In case you want to get data from the user and prompt AI to respond to that specific data you should create a Custom Field to save the user response as well. After that you can proceed as follows;


Go to Flow> Add a New Flow/ Go to Existing Flow



Click inside your message block. A pop-up to add content to your message block will appear on the left side of your screen. It should resemble the image below:

Click "+Add Content"> "Action"



Next Click "OpenAI"



Next, Click "OpenAI" as shown below;


You will be redirected to a dashboard that resembles the image below. In it, select Generate Advance text to give you more abilities for creativity.



1. Business Information Prompt.

This is where you instruct OpenAI.  In this section, you will tell OpenAI what it is, what role it plays, how it interacts with users and even examples of how such role you want it to perform is done. Below are examples of prompts to give you some context on how this is done. 


Example 1

Prompt to Inquire and transfer the conversation to human Support.



Example 2


2. User Message: Examples of these have been covered in the images above.

3.  This is where you select the custom field where the AI Output message will be saved.

4.  This is where you specify the functions to undertake once the AI message is generated and sent.

5.  You can choose to remember the conversation or not.

6.  Temperature: This is where you choose how creative AI can be in the message it generates.

7.  Token: Here you can specify the maximum number of tokens in the AI-generated message. It determines how long or short the generated message is. Note that this can also be specified in the User Message section (2) above.


Prompting in the Settings Sections.


Go to Settings > Intergration> Prompt Engineering


Click Edit as shown below:


In the Business Information Prompt Section, you can instruct AI to be what you want your bot to be. Below is an example of a prompt to give you an idea of how to make your own:



AI Assistants

Another way of prompting AI is by creating your own assistants in the settings section.

Go to Settings > Intergrations> Prompt Engineering> Assistant (Beta) > Manage

Once you create an AI Assitante it will be avaalble as a select option in the AI options during flow building.


Click Add


Provide Instructions that suit the purpose of the Assistant in a page that resembles the image below:

You can upload PDF files in the Files section in the image above and instruct your assistant to use such files as their knowledge base. Once done remember to save. The save button is on the upper right section of your screen.


Prompt Template

Go to Setting > Integration > Prompt Engineering > Prompt Template > Manage > Add


You can use Prompt Template to prompt your bot on how to respond to Frequently Asked Questions. Once you create a prompt template it will be visible on your select options during flow building.




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article