{"id":771003,"date":"2025-10-20T14:44:00","date_gmt":"2025-10-20T12:44:00","guid":{"rendered":"https:\/\/www.devoteam.com\/expert-view\/frugal-chatbot-on-aws\/"},"modified":"2025-11-05T15:44:41","modified_gmt":"2025-11-05T14:44:41","slug":"frugal-chatbot-on-aws","status":"publish","type":"expert-view","link":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/","title":{"rendered":"How to Train and Host a Frugal Chatbot on AWS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today, many companies are working to reduce their CO2 emissions. In cloud environments, this means creating lean, sustainable architectures. AWS has included a Sustainability pillar in its <a href=\"https:\/\/aws.amazon.com\/fr\/blogs\/aws\/sustainability-pillar-well-architected-framework\/\" target=\"_blank\" rel=\"noreferrer noopener\">Well-Architected Framework<\/a> since 2021, which focuses on reducing energy consumption and improving efficiency. This goal aligns well with <a href=\"https:\/\/devoteam.info\/expert-view\/aws-finops-a-complete-guide-to-cloud-cost-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">FinOps<\/a> principles. Recently, Devoteam published an article called &#8220;<a href=\"https:\/\/devoteam.info\/expert-view\/frugal-ai-in-a-resource-hungry-era\/\" target=\"_blank\" rel=\"noreferrer noopener\">Frugal AI: How to Rethink Intelligence in a Resource-Hungry Era<\/a>&#8220;, which inspired me to explore the practical building aspects from a DevOps perspective.<\/p>\n\n<p class=\"wp-block-paragraph\">With the emergence of ChatGPT and other large language models, many companies are now developing their own chatbot services, both for customer use and internal purposes. As a DevOps consultant specialising in AWS, I&#8217;d like to share some practical tips for building a sustainable in-house chatbot. A <strong>frugal chatbot<\/strong> approach prioritises both cost efficiency and environmental sustainability.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-choosing-the-right-model\">Choosing the right model<\/h2>\n\n<p class=\"wp-block-paragraph\">Comparing the actual energy consumption of different chatbots is challenging. Here are some key points to keep in mind:<\/p>\n\n<ol class=\"wp-block-list\">\n<li>We know that the main energy consumption is used <a href=\"https:\/\/www.sustainabilitybynumbers.com\/p\/ai-footprint-august-2025\" target=\"_blank\" rel=\"noreferrer noopener\">during the model training and inference phase<\/a>. Globally, more powerful IAs are trained with a larger dataset and consume more than others. For example, Llama 3.1-8B consumes less than Llama 3.1-405B (<a href=\"https:\/\/www.frontiersin.org\/journals\/communication\/articles\/10.3389\/fcomm.2025.1572947\/full\" target=\"_blank\" rel=\"noreferrer noopener\">source<\/a>).<\/li>\n\n\n\n<li>On the other hand, newer model versions are often more efficient. For example, Llama-3.3-70B consumes less energy than Llama-3.1-70B.<\/li>\n\n\n\n<li>However, rebound effects and the Jevons paradox show that increasing the use of LLMs cancels out efficiency gains.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">In short, it&#8217;s generally better to use the smallest versions of the latest models, and to favour Small Language Models (SLMs) over Large Language Models (LLMs) when possible. The key question is: what&#8217;s your chatbot&#8217;s purpose? For instance, a FAQ bot or a product recommendation assistant will likely work well with an <a href=\"https:\/\/arxiv.org\/pdf\/2506.02153\" target=\"_blank\" rel=\"noreferrer noopener\">SLM<\/a>. However, if you need to analyse and interpret philosophical texts, you&#8217;ll need a larger model. The <a href=\"https:\/\/huggingface.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">Hugging Face<\/a> catalogue is a great resource for finding the right model for your needs.<\/p>\n\n<p class=\"wp-block-paragraph\">Finally, I did not find a study that compared all LLMs. But it seems that Llama generally uses fewer resources than ChatGPT. Google Gemini and Mistral AI also claim to be less consuming than ChatGPT. These considerations are essential when designing a frugal chatbot.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-reduce-cost-on-fine-tuning\">Reduce cost on fine-tuning<\/h2>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/mistral.ai\/news\/our-contribution-to-a-global-environmental-standard-for-ai\" target=\"_blank\" rel=\"noreferrer noopener\">This diagram<\/a> from Mistral AI shows that most of GenAI&#8217;s water consumption and greenhouse gas emissions come from model training and fine-tuning. So what are the different steps involved, and how can we minimise energy consumption?<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-data-collection-and-cleaning\">Data collection and cleaning<\/h3>\n\n<p class=\"wp-block-paragraph\">Training an LLM starts with a large, diverse, high-quality text dataset. The process includes cleaning (removing duplicates to avoid overfitting), filtering (eliminating low-quality or toxic content), and normalisation (fixing encoding, punctuation, and casing before tokenising the text).<\/p>\n\n<p class=\"wp-block-paragraph\">That said, you can skip this energy-intensive training phase entirely by using pre-trained models in Amazon Bedrock. If you must train your own model, use serverless services like Glue and Lambda for data collection on S3, and EMR, SageMaker Processing Jobs, or AWS Batch for cleaning. When EC2 instances are necessary, choose spot instances with <a href=\"https:\/\/aws.amazon.com\/fr\/ec2\/instance-types\/m7g\/\" target=\"_blank\" rel=\"noreferrer noopener\">m7g types<\/a> for better energy efficiency.<\/p>\n\n<p class=\"wp-block-paragraph\">Also consider regional differences: Ireland, Stockholm, and Paris use <a href=\"https:\/\/aws.amazon.com\/fr\/blogs\/architecture\/how-to-select-a-region-for-your-workload-based-on-sustainability-goals\/\" target=\"_blank\" rel=\"noreferrer noopener\">more renewable energy <\/a>than Frankfurt or London.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-choose-the-model-architecture-transformer\">Choose the Model Architecture Transformer<\/h3>\n\n<p class=\"wp-block-paragraph\">This phase is crucial because it determines the complexity of your future model. As mentioned earlier, start by clarifying your chatbot&#8217;s purpose.<\/p>\n\n<p class=\"wp-block-paragraph\">First, you&#8217;ll need to choose the right type of transformer architecture. Generally, use decoder-only models for conversational AI and encoder-decoder models for tasks like translation or summarisation.<\/p>\n\n<p class=\"wp-block-paragraph\">Next, you&#8217;ll configure key parameters like the number of transformer layers and the maximum token sequence length (which determines how much conversation history the chatbot considers when responding). These choices directly impact both model complexity and energy consumption.<\/p>\n\n<p class=\"wp-block-paragraph\">For large-scale, multi-domain chatbots, consider using Mixture of Experts (MoE). This architecture has many parameters but activates only a subset for each token, allowing a large model to consume roughly the same energy as a medium-sized one. This significantly reduces energy consumption per inference and training step. However, keep in mind that <a href=\"https:\/\/docs.aws.amazon.com\/sagemaker\/latest\/dg\/model-parallel-core-features-v2-expert-parallelism.html\" target=\"_blank\" rel=\"noreferrer noopener\">MoE doesn&#8217;t reduce GPU memory requirements<\/a>.<\/p>\n\n<p class=\"wp-block-paragraph\">Once again, it&#8217;s better to use pre-trained models from SageMaker JumpStart or <a href=\"https:\/\/huggingface.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">the Hugging Face marketplace<\/a> rather than training from scratch. However, if you do need to train your own model, consider using smaller decoder-only architectures, such as ALiBi or FlashAttention, which can handle long contexts more efficiently. These lightweight approaches are ideal for a frugal chatbot implementation.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-pretraining-self-supervised\">Pretraining (Self-Supervised)<\/h3>\n\n<p class=\"wp-block-paragraph\">This is the most energy-intensive phase, where the transformer uses unsupervised learning to analyse data with minimal human intervention.<\/p>\n\n<p class=\"wp-block-paragraph\">To optimise compute efficiency during training, use P4d or <a href=\"https:\/\/aws.amazon.com\/fr\/ec2\/instance-types\/p5\/\" target=\"_blank\" rel=\"noreferrer noopener\">P5 EC2 instances <\/a>with NVIDIA GPUs, enable SageMaker Managed Spot Training for non-critical workloads, and remember to choose an energy-efficient AWS region.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-fine-tuning\">Fine-Tuning<\/h3>\n\n<p class=\"wp-block-paragraph\">This is where you adapt a general-purpose model to your specific use case by training it on company-specific documents and information. Important: never include personal or sensitive data in this process.<\/p>\n\n<p class=\"wp-block-paragraph\">You can skip all the previous steps by using pre-trained models from Amazon Bedrock. To minimise fine-tuning costs, consider using Retrieval-Augmented Generation (RAG). RAG is particularly effective for keeping models current as data changes\u2014it enables continuous updates without expensive retraining cycles while keeping your model smaller and more cost-effective. Another simple approach is to enhance model performance by dynamically adding relevant context to your prompts.<\/p>\n\n<p class=\"wp-block-paragraph\">If you need to retrain an existing large foundation model (FM), use <a href=\"https:\/\/aihub.hkuspace.hku.hk\/2025\/08\/22\/fine-tune-openai-gpt-oss-models-using-amazon-sagemaker-hyperpod-recipes\/\" target=\"_blank\" rel=\"noreferrer noopener\">SageMaker HyperPod<\/a>.<\/p>\n\n<p class=\"wp-block-paragraph\">You can also build a continuous learning workflow: cache user queries with API Gateway, vectorise them with Lambda, store them in DynamoDB or OpenSearch, and feed them back to your Bedrock LLM. This approach aligns perfectly with frugal chatbot principles by maximising efficiency.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-reinforcement-and-benchmarking\">Reinforcement and Benchmarking<\/h3>\n\n<p class=\"wp-block-paragraph\">In this final phase, you can apply Reinforcement Learning from Human Feedback (RLHF) to refine your model and conduct testing and benchmarking.<\/p>\n\n<p class=\"wp-block-paragraph\">To keep evaluations efficient, automate your evaluation pipelines using serverless workflows, such as Step Functions and Lambda, and use representative sample datasets for benchmarks rather than running exhaustive tests.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-deploy-a-sustainable-infrastructure-on-aws\">Deploy a sustainable infrastructure on AWS<\/h2>\n\n<p class=\"wp-block-paragraph\">For a compact but efficient chatbot architecture, here&#8217;s what I recommend:<\/p>\n\n<ol class=\"wp-block-list\">\n<li><strong>Amazon CloudFront<\/strong> \u2013 Content delivery<\/li>\n\n\n\n<li><strong>S3<\/strong> \u2013 Static web hosting<\/li>\n\n\n\n<li><strong>AWS WAF<\/strong> \u2013 Traffic control and security<\/li>\n\n\n\n<li><strong>Application Load Balancer (ALB)<\/strong> \u2013 Traffic distribution<\/li>\n\n\n\n<li><strong>ECS<\/strong> \u2013 Hosting conversational logic<\/li>\n\n\n\n<li><strong>DynamoDB<\/strong> \u2013 Storing conversation history<\/li>\n\n\n\n<li><strong>Bedrock LLM<\/strong> \u2013 Generating responses<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">So how can we maximise the sustainability impact of this setup?<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-cache-strategy\">Cache strategy<\/h3>\n\n<p class=\"wp-block-paragraph\">First, as we&#8217;ve seen, Bedrock will account for much of the environmental impact. We can significantly reduce this through caching strategies.<\/p>\n\n<p class=\"wp-block-paragraph\">Use an in-service cache\u2014such as Valkey (replacing Redis\/ElastiCache) or DynamoDB with TTL\u2014to reuse recent responses in near-real-time. Combine this with response hashing and deterministic prompts so identical requests hit the cache. This approach is especially effective for FAQ-style chatbots with frequently repeated questions.<\/p>\n\n<p class=\"wp-block-paragraph\">Bedrock now offers native <a href=\"https:\/\/docs.aws.amazon.com\/bedrock\/latest\/userguide\/prompt-caching.html\" target=\"_blank\" rel=\"noreferrer noopener\">prompt caching<\/a> for models like Claude and Amazon Nova, which allows the service to skip reprocessing input tokens. This can dramatically reduce compute requirements for repeated prompts.<\/p>\n\n<p class=\"wp-block-paragraph\">You can also implement caching at the CloudFront level with longer TTLs for templated or commonly repeated responses.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-batched-work-where-possible\">Batched work where possible<\/h3>\n\n<p class=\"wp-block-paragraph\">For tasks like summaries or long reports, consider implementing an SQS queue with an autoscaling worker pool. This approach avoids wasting compute time on container startup delays and ensures efficient resource utilisation.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-compute-impact\">Compute impact<\/h3>\n\n<p class=\"wp-block-paragraph\">To optimise for sustainability, prioritise EC2 spot instances over on-demand instances whenever possible. Even better, favour serverless Fargate over EC2 unless you have specific requirements like specialised networking or GPU access. When using Fargate, opt for Graviton3 (ARM) processors, which deliver better performance per watt and are typically more cost-effective. Finally, keep container images as small as possible to reduce resource consumption.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-autoscaling\">Autoscaling<\/h3>\n\n<p class=\"wp-block-paragraph\">Configure autoscaling based on business metrics like request queue length and pending LLM requests, not just CPU and memory usage. Keep minimum capacity low during off-peak hours to avoid idle resources, while ensuring the system can scale up quickly to handle traffic spikes.<\/p>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-network\">Network<\/h3>\n\n<ul class=\"wp-block-list\">\n<li>Use VPC endpoints (not NAT) for S3 and DynamoDB. Compress payloads and prefer binary formats.<\/li>\n\n\n\n<li>WAF: Implement rate limits, bot control, and managed rules to block abusive traffic and prevent wasted LLM calls. Add per-user quotas for fair usage.<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-efficient-storage-and-retention\">Efficient storage and retention<\/h3>\n\n<ul class=\"wp-block-list\">\n<li><strong>DynamoDB:<\/strong> Use on-demand billing and enable TTL (Time to Live) to automatically clean up old conversation records.<\/li>\n\n\n\n<li><strong>S3:<\/strong> Enable Intelligent-Tiering and set up lifecycle policies to archive or delete unused files automatically.<\/li>\n\n\n\n<li><strong>Logging:<\/strong> Set retention periods based on actual observability and compliance needs\u2014avoid keeping logs longer than necessary.<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading has-medium-font-size\" id=\"h-bedrock\">Bedrock<\/h3>\n\n<p class=\"wp-block-paragraph\"><strong>Token optimization:<\/strong> Minimize input token size by pre-filtering questions and compressing context where possible.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Carbon footprint monitoring:<\/strong> Use the AWS Customer Carbon Footprint Tool to measure carbon intensity across regions and select the least emission-intensive options when latency and compliance permit. AWS measures efficiency using Power Usage Effectiveness (PUE). As mentioned earlier, prioritize regions like Stockholm or Paris over Frankfurt or London for their lower carbon footprint (8).<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Monitoring and cost tracking:<\/strong> Implement comprehensive monitoring that tracks request counts, LLM invocations, token usage, and cache hit rates. Consider external tools like <a href=\"https:\/\/aws.amazon.com\/marketplace\/pp\/prodview-gdm3gswgjhgjo\" target=\"_blank\" rel=\"noreferrer noopener\">LiteLLM<\/a> proxy for spend tracking, budget management, and per-user limits, or <a href=\"https:\/\/aws.amazon.com\/fr\/blogs\/apn\/transform-large-language-model-observability-with-langfuse\/\" target=\"_blank\" rel=\"noreferrer noopener\">Langfuse<\/a> for monitoring, debugging, and analyzing LLM applications. Tag all resources to enable detailed Cost &amp; Usage Reports and budget tracking.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n<p class=\"wp-block-paragraph\">Finally, remember the first principle of the 5Rs (Refuse, Reduce, Reuse, Recycle, Rot): <strong>Refuse<\/strong>. Only build a chatbot if you genuinely need one. If you do decide to move forward, I hope this article has provided valuable guidance on minimising your chatbot&#8217;s environmental impact. By following these best practices, you can build a truly frugal chatbot that serves your business needs while respecting both your budget and the environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, many companies are working to reduce their CO2 emissions. In cloud environments, this means creating lean, sustainable architectures. AWS has included a Sustainability pillar in its Well-Architected Framework since 2021, which focuses on reducing energy consumption and improving efficiency. This goal aligns well with FinOps principles. Recently, Devoteam published an article called &#8220;Frugal AI: [&hellip;]<\/p>\n","protected":false},"featured_media":0,"template":"","categories":[750,751,764],"tags":[],"industry":[],"class_list":["post-771003","expert-view","type-expert-view","status-publish","hentry","category-artificial-intelligence-ai","category-aws-uk","category-sustainability"],"acf":[],"cards":"\n\t<div class=\"single-post-card\">\n\n\t\t\n\n\t\t\n\t\t<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-43282307 wp-block-group-is-layout-flex\">\n\t<p style=\"font-style:normal;font-weight:700\" class=\"has-link-color wp-elements-1 wp-block-lp-post-type has-text-color has-primary-color has-small-font-size\">Expert View<\/p>\n\n\t\t\n\t\t<h3 style=\"font-style:normal;font-weight:400\" class=\"wp-block-post-title has-base-font-size\"><a href=\"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/\" target=\"_self\" >How to Train and Host a Frugal Chatbot on AWS<\/a><\/h3><\/div>\n\t\t\n\t<\/div>\n\n","yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.4 (Yoast SEO v28.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Train and Host a Frugal Chatbot on AWS | Devoteam<\/title>\n<meta name=\"description\" content=\"Learn how to build a frugal chatbot on AWS with sustainable practices, smart caching, and cost-effective AI models for your business.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Train and Host a Frugal Chatbot on AWS\" \/>\n<meta property=\"og:description\" content=\"Learn how to build a frugal chatbot on AWS with sustainable practices, smart caching, and cost-effective AI models for your business.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/\" \/>\n<meta property=\"og:site_name\" content=\"Devoteam\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-05T14:44:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Devoteam_success-story_CNAM_Bilan-carbone-numerique.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1707\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/expert-view\\\/frugal-chatbot-on-aws\\\/\",\"url\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/expert-view\\\/frugal-chatbot-on-aws\\\/\",\"name\":\"How to Train and Host a Frugal Chatbot on AWS | Devoteam\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/#website\"},\"datePublished\":\"2025-10-20T12:44:00+00:00\",\"dateModified\":\"2025-11-05T14:44:41+00:00\",\"description\":\"Learn how to build a frugal chatbot on AWS with sustainable practices, smart caching, and cost-effective AI models for your business.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/expert-view\\\/frugal-chatbot-on-aws\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devoteam.info\\\/uk\\\/expert-view\\\/frugal-chatbot-on-aws\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/expert-view\\\/frugal-chatbot-on-aws\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Expert View\",\"item\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/expert-view\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Train and Host a Frugal Chatbot on AWS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/#website\",\"url\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/\",\"name\":\"Devoteam\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devoteam.info\\\/uk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Train and Host a Frugal Chatbot on AWS | Devoteam","description":"Learn how to build a frugal chatbot on AWS with sustainable practices, smart caching, and cost-effective AI models for your business.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/","og_locale":"en_GB","og_type":"article","og_title":"How to Train and Host a Frugal Chatbot on AWS","og_description":"Learn how to build a frugal chatbot on AWS with sustainable practices, smart caching, and cost-effective AI models for your business.","og_url":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/","og_site_name":"Devoteam","article_modified_time":"2025-11-05T14:44:41+00:00","og_image":[{"width":2560,"height":1707,"url":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Devoteam_success-story_CNAM_Bilan-carbone-numerique.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/","url":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/","name":"How to Train and Host a Frugal Chatbot on AWS | Devoteam","isPartOf":{"@id":"https:\/\/devoteam.info\/uk\/#website"},"datePublished":"2025-10-20T12:44:00+00:00","dateModified":"2025-11-05T14:44:41+00:00","description":"Learn how to build a frugal chatbot on AWS with sustainable practices, smart caching, and cost-effective AI models for your business.","breadcrumb":{"@id":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/devoteam.info\/uk\/expert-view\/frugal-chatbot-on-aws\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devoteam.info\/uk\/"},{"@type":"ListItem","position":2,"name":"Expert View","item":"https:\/\/devoteam.info\/uk\/expert-view\/"},{"@type":"ListItem","position":3,"name":"How to Train and Host a Frugal Chatbot on AWS"}]},{"@type":"WebSite","@id":"https:\/\/devoteam.info\/uk\/#website","url":"https:\/\/devoteam.info\/uk\/","name":"Devoteam","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devoteam.info\/uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"julien.lemarchal","author_link":"https:\/\/devoteam.info\/uk\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"Today, many companies are working to reduce their CO2 emissions. In cloud environments, this means creating lean, sustainable architectures. AWS has included a Sustainability pillar in its Well-Architected Framework since 2021, which focuses on reducing energy consumption and improving efficiency. This goal aligns well with FinOps principles. Recently, Devoteam published an article called &#8220;Frugal AI:&hellip;","_links":{"self":[{"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/expert-view\/771003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/expert-view"}],"about":[{"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/types\/expert-view"}],"version-history":[{"count":0,"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/expert-view\/771003\/revisions"}],"wp:attachment":[{"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/media?parent=771003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/categories?post=771003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/tags?post=771003"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/devoteam.info\/uk\/wp-json\/wp\/v2\/industry?post=771003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}