OpenAI token usage
Last updated
Was this helpful?
Last updated
Was this helpful?
We offer a variety of AI tools at Bird, including:
These tools are powered by an integration called , and use tokens to work.
Tokens are a way for OpenAI's large language models (LLMs) to understand and create sentences.
When OpenAI's LLM needs to process a sentence, such as a message sent to you by a customer, or create a sentence, such as formulating a reply to your customer's message, it breaks the words down into smaller pieces called tokens.
In short, LLMs make sense of sentences written by humans by converting them into a format that the LLM can understand.
The more tokens it uses, the more it understands, and the more accurate its replies will be.
Understanding messages from customers and formulating responses aren't the only ways that OpenAI's LLMs uses tokens. They also use tokens to understand how they're supposed to work, and to perform specific tasks.
In AI Agents, the following processes use tokens:
To understand the you've given the AI Agent about how it should work, including its , you've asked it to perform, the it's talking to, the you've given it, the it needs to follow, when it should to an human, and any or you've set up.
To understand messages that it needs to process.
To formulate responses to messages.
To perform actions like searching a knowledge base, sending messages, resolving conversations, or handing over to a human agent.
These process are what make our AI Agents so powerful in comparison to a chatbot that hasn't been given these instructions, doesn't understand any context, and hasn't been asked to perform any additional tasks.
The more complex the instructions you've given your AI Agent, the more tokens it will use.
You can see exactly how many tokens your AI Agents are using.
When testing an AI agent, send a message to the agent, then click Inspect.
When examining a live AI Agent, go to the Agent, click Chats, then Inspect each chat.
When you use the OpenAI integration with Bird, your OpenAI account will be billed for token usage, not Bird.
Tokens are billed by OpenAI based on the usage by your AI Agents, and Bird does not impose additional charges for these tokens.
Good to know
Bird will never add any non-essential tokens to your processes.
The only way to reduce token usage by AI Agents is to limit its functionality. This can be done by removing some of the instructions you've given it during the set up.
However, we don't recommend this approach as it will limit the capabilities of the AI Agent, and will still use tokens.
Because our AI Agents use tokens to perform a variety of complex process, your token usage may be higher than expected, particularly if you're only used to working with basic OpenAI functions, such as the OpenAI step in , or OpenAI assistant.