How to Enable and Use Pre-Prompt for Your Agent

This guide will help you enable the Pre-Prompt feature for your CustomGPT.ai agent, allowing your AI Agent to automatically trigger the first response as soon as the conversation is opened.

What It Does

The Pre-Prompt feature automatically sends the initial prompt as soon as the conversation is opened.

How to Enable Pre-Prompt

Step 1: Sign in

a) Sign in to https://app.customgpt.ai/.


Step 2: Deploy Project

a) Click the Deploy Project icon.

Deploy Project

b) Enable "Public Sharing" for the AI Agent by sliding to the right.

Public AI Agent - CustomGPT.ai.png

Step 3: Go to Deployment Options

a) Navigate to any of the supported deployment options (Embed, Live Chat, Website Copilot, Instant Viewer). Due to it's nature, Pre-Prompt is not available for Search Generative Experience deployment option.

Deployment Options

Step 4: Scroll to Expert Mode

a) Locate the Expert Mode section.

Expert Mode

📘

Enabling this feature will add placeholder variable to the code snippet. However, for the integration to work as intended, you need to configure this value according to your specific requirements.


Step 5: Enable Pre-Prompt Integration

a) Turn on the Pre-Prompt Integration. This feature triggers the first message to the AI Agent as soon as the conversation is opened. For example, you could push form submissions as the initial message.

Pre-Prompt

❗️

This is not a welcome message. The AI Agent will start responding immediately upon page load and will consume 1 query credit.


Step 6: Update the Code Snippet

a) If you’ve already installed the code snippet you'll need to update it on your website for the Pre-Prompt to function properly. It is necessary to either:

  1. Replace code snippet
  2. Add this part to existing code snippet: prompt="PLACEHOLDER"
Update the Code Snippet

🚧

Note: Replace PLACEHOLDER with a message that will be used as the initial prompt.


How to Disable Pre-Prompt

To disable the Pre-Prompt feature, you can:

a) Turn the Toggle Off

  1. Disabling the toggle will stop the Pre-Prompt from triggering.
Turn the Toggle Off

b) Remove the Code Snippet

  1. Remove the prompt="PLACEHOLDER" line from your code snippet.
Remove the Code Snippet

👍

Congratulations! You've successfully enabled the Pre-Prompt feature for your CustomGPT.ai agent. Your AI Agent is now set to automatically respond as soon as the conversation starts, providing an immediate and engaging user experience. ✔