Aingecy SAAS

Topics

Overview

Introduction

This tutorial is designed to provide a detailed understanding of the operation of the AI Chat GPT script from OpenAI SaaS.

1. Introduction to the Aigency Script
The Aigency script offers a feature-rich website, providing a range of tools that allow administrators to create custom GPT chat agents tailored to their needs. These agents can be easily managed through the integrated administrative system.

2. Operation for Administrators
As an administrator of the Aigency script, you have the ability to create and manage multiple chat agents. The process involves defining prompts and adjusting specific settings for each agent. While prompts serve as text commands guiding the agent's behavior, settings can adjust aspects such as creativity level and response tone. Once created, the agents are ready to interact with users, providing responses powered by the GPT chat's artificial intelligence.

3. Importance of the API KEY
To enable virtual agent responses via Chat GPT, possessing an API KEY is essential. This key is obtained through the official OpenAI website. For its acquisition, you'll need to link a credit card or another payment method to the OpenAI site. Once acquired, the API KEY should be integrated into the Aigency script via the administrative panel.

4. Associated Costs
User interaction with the agents generates AI-processed responses, and each of these interactions incurs a fee. This fee is directly deducted from the OpenAI account linked to your API KEY. The cost is based on the chosen GPT chat model and the number of tokens processed during conversations. In the standard model, which has a 4k token context limit, the rate is $0.0015 / 1K input tokens and $0.002 / 1K output tokens. For context, on average, 1000 tokens in English equate to a text of 700 to 1000 words. For a detailed view of pricing, visit: https://openai.com/pricing

5. Aigency Script's Credit System
With monetization in mind, the Aigency script incorporates a credit package system. These credits allow administrators to control and limit chat usage by users, who can purchase additional packages to extend their interactions with the agents. It's important to note that the credits in the Aigency script are internal control mechanisms and do not directly relate to the tokens and credits of OpenAI.

Cost Simulation:

When a user decides to acquire package 1, which contains 50,000 aigency credits, the charged amount is $5. However, as an administrator or service provider, it's crucial to understand that by offering this package, the cost associated with OpenAI for GPT chat responses is only $0.10.

Understanding the Calculation:

OpenAI has a fee of $0.002 for each set of 1,000 tokens (characters) in the response.
Let's break it down:

Individual Cost per Character:
Given that 1,000 tokens have a price of $0.002: The cost of 1 token (character) is: $0.002 ÷ 1,000 = $0.000002. Total Cost for 50,000 Characters (Tokens):
The multiplication is: 50,000 tokens x $0.000002 = $0.10.
In summary, when using all 50,000 aigency credits, the cost you'll incur with OpenAI is $0.10, while the user paid $5 to obtain that amount of credits.

Conclusion
The Aigency script is a robust and versatile tool that integrates and customizes OpenAI's Chat GPT for your website, also offering the opportunity to monetize these interactions.