Example Use Bot

On this page we will explain the tutorial on using commands on the bot.

POST /completion

This endpoint is used to submit a prompt and retrieve the AI-generated completion. The request should include the following parameters:

  • prompt: The text prompt for the AI model to generate a completion based on.

  • temperature: (optional) A parameter that controls the randomness of the generated text. Higher values (e.g., 0.8) result in more random output, while lower values (e.g., 0.2) produce more deterministic output.

Example request:

 /generateimage
 
   "prompt": "/generateimage make a doge coin",
  "temperature": 0.5 (opsional)
  first response : ''Your request is being processed. Please wait...''
  
the result of the desired prompt
 /texttospeech
 
   "prompt": "/texttospeech shimer-In a land far, far away, there was a kingdom named Elaria, renowned for its lush landscapes and harmonious people. The kingdom was nestled between towering mountains and dense forests, 
   and at its heart stood a magnificent castle made of shimmering white stone that sparkled in the sunlight.",
 
  first response : ''Your request is being processed. Please wait...''
  
the result of the desired prompt

Please write the voice and the message to convert to speech in the format: voice-message.

Example: Shimmer-In a land far, far away, there was a kingdom named Elaria......

Available voices: alloy, echo, fable, onyx, nova, and shimmer

/chatbot
 
   "prompt": "/chatbot " just type /chatbot without any prompt, you will be able to chat with our old wizard directly. ask about anything you want
 
  first response : ''Your request is being processed. Please wait...''
  
the old wise wisdom
 /generatetweet
 
   "prompt": "/generatetweet gimme a great tweet about smartsage ai",
 
  first response : ''Your request is being processed. Please wait...''
Confused when you want to make tweet X on your account? Use this!
 /generatearticle
 
   "prompt": "/generatearticle about Smartsage AI",
 
  first response : ''Your request is being processed. Please wait...''
 
bot will input the answer into docs txt.
/generatetestimonials
 
   "prompt": "/generatetestimonials about Smartsage AI Telegram bot",
 
  first response : ''Your request is being processed. Please wait...''
 
/generateseokeywords
 
   "prompt": "/generateseokeywords for Smartsage AI Article",
 
  first response : ''Your request is being processed. Please wait...''
 
/learnwithbot
 
   "prompt": "/learnwithbot",
 
  first response : ''Your request is being processed. Please wait...''
 

you can learn anything with Smartsage, ask him anything anytime and anywhere. he will answer all your questions

Error Handling

If an error occurs during the API request, the response will include an appropriate error message along with the corresponding HTTP status code.

Last updated