This submit was co-written by Lili’s Liran Zelkha and Eyal Solnik.
Small enterprise homeowners are likely to prioritize the operational elements of their enterprise over administrative duties akin to monetary information and accounting. Whereas hiring an expert accountant can present precious recommendation and experience, it may be cost-prohibitive for a lot of small companies. Moreover, the accountant’s responses might not all the time meet the proprietor’s quick wants, leaving questions unanswered and slowing down the decision-making course of.
Within the quickly evolving world of large-scale language fashions (LLMs) and generative synthetic intelligence (AI), Lili Lili acknowledged a possibility to make use of this know-how to deal with the monetary recommendation wants of their small enterprise prospects. Utilizing Anthropic’s Claude 3 Haiku on Amazon Bedrock, they developed the clever AccountantAI chatbot that may present on-demand accounting recommendation tailor-made to every buyer’s monetary historical past and distinctive enterprise necessities. The AccountantAI chatbot acts as a digital assistant, offering inexpensive, actionable monetary steering, enabling small enterprise homeowners to make sure the monetary well being of their enterprise whereas specializing in their core experience.
About Lili
Lili is a monetary platform designed particularly for companies, combining superior enterprise banking with built-in accounting and tax preparation software program.
Lili streamlines and simplifies company monetary administration by integrating monetary instruments right into a user-friendly interface, making it a compelling resolution for enterprise homeowners who wish to handle their monetary operations centrally and effectively.
On this submit, we clarify how Lili, a monetary platform designed particularly for enterprises, constructed a safe and clever AccountantAI chatbot for small enterprise homeowners utilizing Amazon Bedrock. Amazon Bedrock is a totally managed service that gives a selection of high-performance foundational fashions (FMs) from main AI firms akin to Anthropic, Meta, Mistral AI, Stability AI, Cohere, AI21 Labs, and Amazon in a single API. It additionally gives a variety of capabilities required to construct generative AI purposes with safety, privateness, and accountable AI.
Answer overview
The AccountantAI chatbot gives small enterprise homeowners with correct and related monetary accounting recommendation in a safe method. To attain this, the answer is designed to deal with two key necessities:
- Query Validation: Implement guardrails to make sure that consumer enter is a legitimate, reputable monetary accounting query. This step filters out irrelevant or inappropriate queries and maintains the integrity of the system.
- Enhanced context: Increase the consumer’s questions with related contextual information, akin to up-to-date accounting info or user-specific monetary information. This step allows the chatbot’s responses to be tailor-made to every particular person consumer’s enterprise and monetary scenario, offering extra personalised, actionable recommendation.
To deal with the 2 key necessities of query validation and context enrichment, the AccountantAI resolution employs a two-stage structure consisting of an ingestion workflow and a seize workflow.
Ingestion Workflow
The ingestion workflow is an offline course of that prepares the system to answer buyer inquiries. At this stage, Lili gives a complete Golden Assortment A set of economic accounting questions extracted from widespread inquiries and real-world questions from our long-standing buyer base. This numerous, high-quality assortment serves as a reference corpus, enabling our chatbot to deal with a variety of related queries. The ingestion workflow converts these curated questions into vector embeddings utilizing the Amazon Titan Textual content Embeddings mannequin API. This course of runs over AWS PrivateLink for Amazon Bedrock, a secured, personal connection inside your VPC. The vector embeddings are continued within the software’s in-memory vector retailer. These vectors assist validate consumer enter in the course of the ingestion workflow.
Every fastidiously chosen vector embedding is paired with an identical immediate template that was rated as handiest throughout testing.
Immediate template instance
Search workflow

Lili’s net chatbot net interface permits customers to submit queries and obtain responses in actual time. When a buyer asks a query, it’s despatched to a backend system for processing.
- The system first converts the question into vector embeddings utilizing the Amazon Titan Textual content Embeddings mannequin API, which is securely accessed by way of PrivateLink.
- The system then performs a similarity search towards the precomputed embeddings of the golden assortment to seek out essentially the most related matches to the consumer’s question. The system evaluates the similarity scores of the search outcomes towards a pre-set threshold. If the consumer’s query produces matches with a low similarity rating, the query is deemed incorrect or unclear and the consumer is requested to rephrase or refine the question.
- Nevertheless, if a consumer’s query generates a match with a excessive similarity rating, it’s thought of a reputable question. On this case, Lili’s backend system will use the golden query with the best similarity rating with the consumer’s question for additional processing.
- Based mostly on the golden query with the best similarity rating, the system retrieves the corresponding immediate template.
This template is then populated with up-to-date accounting info and customer-specific monetary information from exterior sources, akin to Amazon RDS for MySQL. The ensuing contextualized prompts are despatched to Anthropic’s Claude 3 Haiku on Amazon Bedrock to generate custom-made responses that tackle the client’s queries inside their distinctive enterprise context.
Amazon Bedrock makes it straightforward to undertake new developments in generative AI throughout a number of mannequin suppliers, as mannequin suppliers constantly improve their companies with progressive updates. This strategy has demonstrated its advantages from the preliminary rollout of AccountantAI: Lili migrated from Claude Instantaneous to Claude 3 for Anthropic inside two weeks of its official launch within the Amazon Bedrock surroundings and inside three weeks of normal availability.
Lili chosen Anthropic’s Claude mannequin household for AccountantAI after reviewing business benchmarks and conducting its personal high quality evaluation. Anthropic Claude on Amazon Bedrock has constantly outperformed different fashions in understanding monetary ideas, producing constant pure language, and offering correct, custom-made suggestions.
After the preliminary launch of AccountantAI, Amazon Bedrock launched the Anthropic Claude 3 Haiku mannequin, which Lili evaluated towards the Anthropic Claude Instantaneous model. The Anthropic Claude 3 Haiku mannequin confirmed important enhancements throughout three key analysis metrics:
- high quality – Anthropic Claude 3 Haiku presents extra element and higher response than its predecessor, leading to a better high quality output.
- Response time – Anthropic Claude 3 Haiku delivered sooner efficiency with a 10-20 % enchancment in response time in comparison with Claude Instantaneous.
- Price – Amazon’s Anthropic Claude 3 Haiku Bedrock is essentially the most cost-effective selection, providing as much as 68% decrease price per 1,000 enter/output tokens in comparison with Anthropic Claude Instantaneous, for instance, whereas offering greater ranges of intelligence and efficiency. Anthropic’s Claude 3 model now available on Amazon Bedrock For extra particulars:
For patrons like Lili, this highlights the significance of entry to a totally managed service like Amazon Bedrock, which presents a selection of high-performance underlying fashions to fulfill numerous enterprise AI wants. There isn’t a “one measurement matches all” mannequin, and the power to select from cutting-edge FMs is crucial for organizations that wish to successfully and cost-effectively leverage the newest developments in generative AI.
Conclusion
Solely accessible to Lili prospects, AccountantAI options cut back the necessity to rent an expert accountant. Whereas skilled accountants can present precious recommendation and experience, their companies may be too pricey for a lot of small companies. AccountantAI has already answered hundreds of questions, bringing actual worth to companies and offering high quality solutions to monetary, tax and accounting inquiries.
Lili makes use of Amazon Bedrock, which gives straightforward, safe, and dependable entry to high-performance underlying fashions from main AI firms, to combine every consumer’s distinctive information with accounting data at scale. This progressive resolution gives inexpensive experience to optimize money stream, streamline tax planning, and drive development by way of knowledgeable choices. AccountantAI fills the accounting useful resource hole, making high quality monetary info accessible to each enterprise.
Discover Lili’s AccountantAI capabilities, powered by Amazon Bedrock, to get inexpensive monetary intelligence for your small business at the moment, or use Amazon Bedrock Playgrounds to experiment with operating inference with totally different fashions in your information.
In regards to the Creator
Doron Bleiberg As a Senior AWS Startup Options Architect, I assist Fintech prospects on their cloud journey.
Lilan Zerka He’s co-founder and CTO of Lili, main the corporate’s growth and data-related efforts.
Eyal Solnik He’s Lili’s Head of Knowledge and leads the AccountantAI product.

