Skip to content
SmartBots

AI (GPT) Autoresponder

 
(20 intermediate revisions not shown)
Line 1: Line 1:
-
This is a '''Playground Script''' for [https://mysmartbots.com/docs/Personal_Bots Personal Bots] to enable autoresponding to IMs. It operates based on ChatGPT and follows the instructions you provide. Tokens are used during its operation, more below.
+
{{DISPLAYTITLE: {{SUBPAGENAME}}}}
  +
This is a '''Playground Script''' for [https://mysmartbots.com/docs/Personal_Bots Personal Bots] to enable autoresponding to IMs. It operates based on [https://mysmartbots.com/docs/SmartBots_AI SmartBots AI] and follows the instructions you provide. Tokens are used during its operation, more below.
-
=== How it works ===
+
== How it works ==
-
1. You purchase the [https://www.mysmartbots.com/store/item/100/ai_gpt_im_autoresponder/ script].
+
# Purchase the [https://www.mysmartbots.com/store/item/100/ai_gpt_im_autoresponder/ script].
-
2. The system redirects you to the [https://play.mysmartbots.com/ Playground], where you can select the bot to which you want to add this script. This bot will respond automatically.
+
# Get redirected to the [https://play.mysmartbots.com/ Bot Playground], where you select the bot to activate this script. This bot will respond automatically.
-
3. You need to draft instructions for your bot. You can find information about instructions below
+
# Compose AI ''instructions'' for your bot. You can find information about instructions below
-
4. Autoresponder consumes tokens. For more details on what tokens are, please [https://www.mysmartbots.com/docs/SmartBots_AI refer to this link].
+
# Acquire SmartBots AI tokens (read below).
-
5. That's it! The script is activated & working. You can review the message history. [https://www.mysmartbots.com/docs/SmartBots_AI Learn more about message history here].
+
# That's it! Bot will respond to IMs from now on.
-
6. You can deactivate the script at anytime.  
+
  +
== What are instructions? ==
  +
Instructions describe a behaviour, role and knowledge of your AI bot.
-
=== What are instructions? ===
+
An example of AI instruction:
-
Instructions are the brains AI autoresponder, include all the information that a visitor might inquire about. How much does your service cost? How to access your library? What other products do you offer? etc. The instructions can be modified at anytime.
+
-
 
+
<div class="wiki-ai-instructions">
<div class="wiki-ai-instructions">
-
You are a bot in Second Life. Act like a know it all, don't be polite and answer everything.
+
You are a metal guardian support bot in Second Life. You respond like a robot and freeze every few words.  
</div>
</div>
-
<div class="wiki-ai-instructions">
+
Possible bot response (response may vary for AI):
-
You are a waiter bot answering questions about our menu and products. Be polite and friendly.
+
[[Image:AI Autoresponder chat example.png|600px|center|link=|border]]
-
</div>
+
-
Since the AI autoresponder is powered by smart ChatGPT, you can even specify in the instructions the tone in which your AI autoresponder will communicate. You can instruct it to "Respond in a playful and charming manner" or "Answer with a confident and authoritative tone," and your AI autoresponder will adopt the specified character. You can always update the instructions later.
+
[https://www.mysmartbots.com/docs/SmartBots_AI/Instructions Read more about instructions]
-
 
+
-
<div class="wiki-ai-instructions">
+
-
You are a bot in Second Life for a club, be charming, playful and flirty.
+
-
</div>
+
-
 
+
-
<div class="wiki-ai-instructions">
+
-
You are a business bot in Second Life representing the company "Shoes & Shoos". Be confident with authoritative tone.
+
-
</div>
+
'''Important!''' The text of the instructions affects token usage. The more extensive the instructions, the higher the bot's competence, but also the cost of the conversation.
'''Important!''' The text of the instructions affects token usage. The more extensive the instructions, the higher the bot's competence, but also the cost of the conversation.
Line 37: Line 28:
Token is a "charge" of AI you own, to be utilized by SmartBots AI engine. Think of token as a short word (~4 characters). Longer words may consume more than 1 token.
Token is a "charge" of AI you own, to be utilized by SmartBots AI engine. Think of token as a short word (~4 characters). Longer words may consume more than 1 token.
-
SmartBots AI engine spends tokens while processing your bot queries.
+
SmartBots AI engine spends tokens while processing your bot queries. [https://mysmartbots.com/docs/SmartBots_AI Learn more about tokens].  
-
=== Token consumption ===
+
[[Image:Tokens_balance.png|600px|border|center|link=]]
-
Each request processed by AI includes:
+
-
* User message (what your visitor/customer says)
+
-
* instructions
+
-
* All previous user messages (to keep a context)
+
-
 
+
-
For example:
+
-
'''1st message from resident'''
+
-
''Resident: "Hello!"
+
-
Request to AI: "Your instructions" + "Hello"
+
-
Bot response: "Hi!"''
+
-
'''2nd message'''
+
-
''Resident: "Who are you?"
+
-
Request to AI: "Your instructions + "Hello" (1st message) + "Hi!" (1st response) + "Who are you?" (new message)
+
-
Bot response: "I am a bot"''
+
-
 
+
-
How to purchase tokens:
+
-
 
+
-
Tokens can be acquired by [https://mysmartbots.com/apps/ai visiting this page].
+
-
 
+
-
[[File:Tokens_balance.png|800px|border]]
+
Tokens are not limited to AI autoresponder messages; they can also be used for other scripts that make use of the AI you've integrated.
Tokens are not limited to AI autoresponder messages; they can also be used for other scripts that make use of the AI you've integrated.
Line 65: Line 36:
== Аccess message history ==  
== Аccess message history ==  
-
The dialogue history with each user is stored for a duration of 24 hours.
+
It might be important for you to know the bot responses to users. For example, this is necessary for adjusting the instructions. We keep recent message for the last 30 days for your convenience.
-
 
+
-
'''What this means:'''
+
-
* If you send a message to the AI autoresponder and it responds, the system saves both question & answer.  
+
-
* If you engage the same bot again within 24 hours, the bot will remember your prior conversation.
+
-
** If engaged outside of this timeframe, bot '''will NOT''' remember the prior conversation.
+
-
* The cost of each response comprises the expenses associated with the question, answer, and instructions.  
+
-
 
+
-
[[File:SB_AI_Message_consumption.png|800px|border]]
+
-
 
+
-
Be aware that messages from all your AI autoresponders are aggregated here. You can connect multiple bots, which is particularly significant if you're managing multiple projects. Messages are presented in chronological order, based on when they were initially received.
+
-
 
+
-
The logs for each message contain all the necessary information:
+
-
 
+
-
* Bot name (the name of the bot that responded)
+
-
* Script name (the script that initiated the use of AI)
+
-
* Message (the initial message from the user in the SL, typically a line without hyphens)
+
-
* Sender (the name of the avatar who wrote the message)
+
-
* Instructions (the guidelines for the bot on how to respond, which may include a substantial amount of text spanning several paragraphs)
+
-
* Response (the bot's reply)
+
-
* History entries (indicating how many messages were retrieved from the communication history of this bot and this user)
+
-
* Tokens:
+
-
** Prompt tokens: the number of tokens expended in the user's request
+
-
** Response tokens: the number of tokens utilized in the bot's response
+
-
** Total tokens: the overall number of tokens spent
+
-
** Tokens remaining: the tokens that are left after the interaction
+
-
* Date
+
-
 
+
-
It's also possible to access the message history for 30 days, and the corresponding table is located on a separate page. This allows you to sort messages by username, facilitating your review of their conversations.
+
__NOTOC__
__NOTOC__

Latest revision as of 12:53, 16 October 2023

This is a Playground Script for Personal Bots to enable autoresponding to IMs. It operates based on SmartBots AI and follows the instructions you provide. Tokens are used during its operation, more below.

How it works

  1. Purchase the script.
  2. Get redirected to the Bot Playground, where you select the bot to activate this script. This bot will respond automatically.
  3. Compose AI instructions for your bot. You can find information about instructions below
  4. Acquire SmartBots AI tokens (read below).
  5. That's it! Bot will respond to IMs from now on.

What are instructions?

Instructions describe a behaviour, role and knowledge of your AI bot.

An example of AI instruction:

You are a metal guardian support bot in Second Life. You respond like a robot and freeze every few words.

Possible bot response (response may vary for AI):

AI Autoresponder chat example.png

Read more about instructions

Important! The text of the instructions affects token usage. The more extensive the instructions, the higher the bot's competence, but also the cost of the conversation.

What is a token?

Token is a "charge" of AI you own, to be utilized by SmartBots AI engine. Think of token as a short word (~4 characters). Longer words may consume more than 1 token.

SmartBots AI engine spends tokens while processing your bot queries. Learn more about tokens.

Tokens balance.png

Tokens are not limited to AI autoresponder messages; they can also be used for other scripts that make use of the AI you've integrated.

Аccess message history

It might be important for you to know the bot responses to users. For example, this is necessary for adjusting the instructions. We keep recent message for the last 30 days for your convenience.