Setup

Let's get you started with
the all-new Sttabot console.

Start building, capturing and annotating your datasets to powerlifting your LLM models.

PowerNinjaBot Preview

This section is to test, preview and deploy your Telegram bot.

You can first play around with your bot. Then, we will deploy it on  cloud servers.

Scale your AI applications and bots into an enterprise plan.

Why scale to enterprise?

Your applications should not rely on shared servers and public APIs if you want your users to efficiently use it all the time. 

Shared servers and public APIs are awesome for testing purpose or if you have a very small audience to actually use the application. However, if you have a good numbers of users who would be using this application more frequently, do scale to the enterprise edition.

Who should choose to scale their apps?

Other benefits of enterprise plan?

Other benefits.

Why choose Sttabot enterprise?

0 M+
Unique Conversations
0 +
Enterprises trusting Sttabot
0 +
Teams using Sttabot
0 +
Applications Deployed
0 +
Members Testing our Infra

Tutorial Videos to Make Your Dev Journey Easy..

More support videos coming soon..

See your AI application backend code

import telebot
import requests
import json

TELEGRAM_API_KEY = ‘6685954532:AAELXsSLQ_mXNuEgNpRChHewguj9-1Kse0E’
STTABOT_API_KEY = ‘eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjU3OTMsIm5hbWUiOiJoZWxsb2RlbW9AZGVtby5jb20iLCJpYXQiOjE2OTYyMjYyMDIsImV4cCI6MTg1MzkwNjIwMn0.khP3o3khrjzEMoIBtCHikUkAlpgF9rIADQK9t26SpaI’
BOT_USERNAME = ‘@PowerNinjaBot’ # Replace with your bot’s username

bot = telebot.TeleBot(TELEGRAM_API_KEY)

@bot.message_handler(commands=[‘start’])
def greet_user(message):
       bot.send_message(message.chat.id, “Hello there! I am PowerNinjaBot – I am here to help you!”)

@bot.message_handler(commands=[‘help’])
def  help_command(message):
       help_text = “You can use the following commands:n”
       help_text += “/start – Start a conversation with the bot.n”
       help_text += “/help – Get help and information about using the bot.n”
       help_text += “/support – Contact customer support.n”
       help_text += “/startchat – Start a chat with Sttabot.n”
       bot.send_message(message.chat.id, help_text)

@bot.message_handler(func=lambda message: message.text.startswith(BOT_USERNAME))
def handle_mention(message):
      user_message = message.text
      context_instruction = “Instruction : You are PowerNinjaBot – you tell people how to become a ninja and related questions. :”
      prompt = f”{context_instruction}n{user_message}”

      sttabot_url = “https://api.sttabot.io/json/Sttabot/v1/InitiateNewQuery”
      headers = {
          “Content-Type”:”application/json”,
          “Authorization”:f”Bearer {STTABOT_API_KEY}”
       }
      payload = {
      “prompt”: prompt,
      “botId”:”default”,
       “clientId”:”1″
      }

      response = requests.post(sttabot_url, headers=headers, data=json.dumps(payload))

      if response.status_code == 200:
         try:
                data = response.json()
                success = data.get(“success”, False)
                bot_response = data.get(“data”, “Sorry, I couldn’t get a response from Sttabot.”)

                if success:
                     bot.reply_to(message, bot_response) # Reply to the original message
                else:
                     bot.reply_to(message, “Sttabot API returned an error.”)
         except Exception as e:
                print(f”Error parsing Sttabot response: {str(e)}”)
                bot.reply_to(message, “Sorry, there was an error processing your request.”)
      else:
         print(f”Sttabot API Error – Status Code: {response.status_code}”)
         bot.reply_to(message, “Sorry, there was an error processing your request with Sttabot API.”)

bot.polling()