Amazon Bedrock を活用した Flo Health の医療コンテンツレビューの拡張(第 2 部)
Flo Health は Amazon Bedrock を活用した AI 駆動型医療コンテンツレビューシステムを本番環境に導入し、レビュー時間を 60% 短縮して生産性を劇的に向上させた。
キーポイント
PoC から本番環境への移行と成果
AWS 生成 AI イノベーションセンターでの概念実証(PoC)を基に、Flo Health が Amazon Bedrock を活用した医療コンテンツレビューおよび生成システムを実装し、レビュー時間を 60% 削減、スループットを 3 倍にした。
専門 AI ジャッジの導入
単一のモデルに依存せず、異なるレビュー次元(事実確認、コンプライアンス、トーンなど)に対応する専用の「AI ジャッジ」を実装することで、医療情報の精度と安全性を担保している。
RAG によるコンテンツ生成
Retrieval Augmented Generation (RAG) を採用し、信頼できる医学的ソースに基づいて AI がコンテンツを生成・補完する仕組みを構築し、専門家の負担を軽減している。
プロンプトエンジニアリングと運用の知見
医療分野特有の厳格な基準を満たすためのプロンプト設計や、本番環境での安定稼働に向けた lessons learned を共有しており、他社への実装指針となる。
重要な引用
This system reduced review time by 60 percent and tripled content throughput without expanding the medical team.
Qualified medical professionals with content expertise are scarce, recruitment is hard and time-consuming, and the cost of expanding such specialized teams is substantial.
影響分析・編集コメントを表示
影響分析
この事例は、医療という高リスク・高規制領域において、生成 AI を実社会でどう安全かつ効果的に適用するかの実証例として極めて重要です。特に「AI ジャッジ」という概念を用いて人間の専門性を補完するハイブリッドなワークフローの確立は、同様の業界における AI 導入の標準的なモデルとなり得ます。
編集コメント
医療情報の正確性が求められる領域での AI 実装において、単なる生成能力だけでなく、検証プロセス(AI Judge)をどう設計するかが成否の鍵となることを示す優れたケーススタディです。
本記事は、Flo Health の Konstantin Lekh、Sasha Zinchuk、Eugene Sergueev 氏と、AWS の Liza (Elizaveta) Zinovyeva 氏が執筆しました。
今回は、Flo Health のエンジニアリングチームが、AWS ジェネレーティブ AI イノベーションセンターで検証された概念実証(PoC)を、Amazon Bedrock を基盤とした本番環境向けの AI 活用医療コンテンツ審査・生成システムへと昇華させたプロセスを紹介します。このシステムの導入により、審査にかかる時間は 60% 短縮され、医療チームの増員なしにコンテンツ処理能力は 3 倍に拡大しました。
ここでは主に以下の 4 つのポイントを解説します。(1) Flo Health のコンテンツパイプラインに合わせて PoC アーキテクチャを適応させた点、(2) 審査の各次元に対応する専門的な AI ジャッジの実装、(3) 検索拡張生成(RAG)を活用した AI コンテンツ生成システムの構築、そして (4) プロンプトエンジニアリングと本番環境への展開から得られた教訓です。なお、このシリーズの第 1 回では初期の概念実証について取り上げています。
※本記事は Flo Health エンジニアリングチームの視点に基づいています。
Flo Health では、健康に関する旅を歩む数百万人のユーザーをサポートするため、アプリ内の記事やストーリー、オンボーディングフロー、マーケティング資料など、多様なコンテンツを作成しています。テキストであれ画像であれ、すべてのコンテンツはガイドラインで定めた厳格な医療精度基準を満たす必要があります。
AI ツールを活用して編集者やデザイナーのコンテンツ作成を加速させることは成功しましたが、医療レビューが依然として最大のボトルネックとなっていました。

コンテンツ作成における課題
医療専門家は、記事 1 本あたり平均して 7 営業日を費やしています。事実の精査、信頼できる情報源との照合、そして 10 項目からなる医療精度チェックリストへの準拠確認を念入りに行っているのです。
この徹底したプロセスは、信頼と安全性を維持するために不可欠ですが、コンテンツ制作の規模拡大やユーザーニーズへの迅速な対応という点では、足かせとなっていました。

課題は時間的な制約だけではありません。医療レビューチームの規模拡大には、独自の難しさがあります。コンテンツに精通した有資格な医療専門家は貴重であり、採用も困難で時間を要し、こうした専門チームを拡張するコストは莫大です。より多くのレビュアーを採用するという従来の拡大手法は、持続可能でも経済的に実現可能ではありません。 そこで必要だったのは、既存の医療専門家たちの影響力を高める方法でした。つまり、彼らの時間をより効率的に使い、専門知識をスケーラブルなものにするのです。
汎用的な AI ツールは驚くべき能力を示していますが、医療コンテンツのレビューにおいては重大なリスクを伴います。これらのシステムは、基礎となる参照や事実に基づかない情報を生成する可能性があります。これは一般的に「ハルシネーション(幻覚)」と呼ばれる現象です。Flo では数百万人のユーザーが、自身の身体と健康を理解するために当社の教育コンテンツに依存しています。そのため、正確性と信頼性が何よりも重要です。私たちが求めたのは、信頼できる医療情報源からの情報のみを提供し、提示するすべての情報に対して明確な出典を示すように設計されたソリューションでした。
AWS による概念実証(PoC)がスタート地点となる
PoC の成功は、医療コンテンツレビューへの取り組み方を変革する素晴らしい機会をもたらしました。私たちは、医療専門家の能力を拡大しつつ、継続的な検証を通じて信頼を築くという漸進的な導入戦略を選びました。
本番環境での実装では、3 層の検証アプローチを採用しています。まず、システムは「社内医療ガイドライン」に基づいてコンテンツをチェックし、既設ルールに照らして潜在的な問題点を指摘し、修正を提案します。次に、「信頼できる外部医療情報源」、すなわちエビデンスに基づく臨床意思決定ツールから査読付き学術誌、規制当局に至るまでとの整合性を検証します。
最後に、AI が付与した注釈付きのコンテンツを医療専門家がレビューする際にも、適用されたルールを強調表示し、関連情報源への直接リンクを提供する簡素なインターフェースを用意しています。これにより、事実確認が大幅に容易になります。
主な成功指標は、2 つの領域に焦点を当てています。すなわち、レビュー時間の短縮と、専門家が求める修正回数の最小化です。
AI レビューシステム
ここでは、PoC(概念実証)で検証したコンポーネントをどのように統合・変換・拡張し、医療レビューの規模拡大に対応できる本番レベルのシステムへと昇華させたかを探ります。
「AI Review ツール」は、コンテンツ作成者と医療レビュー担当者の間のフィードバックループを短縮します。AI Review を活用することで、人間によるレビュー段階に到達するコンテンツの品質が向上し、反復作業の回数を減らすことが可能になります。
まず、PoC 期間中に特定された MACROS アーキテクチャを Flo のコンテンツモデルに合わせてカスタマイズすることから始めました。
Flo Health では、それぞれ固有のプロンプトと学習・テスト用の例文セットを持つ「AI 審査員(AI Judges)」のグループを構築しました。各審査員は、医療的正確性、法的コンプライアンス、ブランドスタイルなど、特定のレビュー項目に特化して機能します。

各審査員に対して複数のモデルを試し、品質基準やリスクレベル、応答速度(レイテンシ)、運用コストの要件に基づいて最適なモデルを選定します。医療安全や高リスクチェックが必要なケースでは、精度と信頼性が最優先されます。一方、単純な低リスクチェックであれば、性能基準を満たす限り軽量なモデルを採用するのが適切です。このアプローチにより、各審査員を個別に改善できます。具体的には、例文の追加やプロンプトのカスタマイズ、精度向上を図りつつ、他の審査員の動作は変更しないため、既存機能の劣化(回帰)を防ぐことができます。
Flo Health のコンテンツパイプラインでは、Amazon が提唱する MACROS パターンを採用し、Flo 独自の Contentful CMS 上で実運用に適応させました。テキストを管理可能なセクションに分割するという MACROS の戦略は、既存のアーキテクチャと非常に相性が良いです。なぜなら、フロー(アンケートやチャット)のグラフデータはすでにチャンク化された形式で保存されており、各ステップが独立したコンテンツエントリとして扱われるためです。

評価前に、各ステップをボタンテキスト、タイトル、説明文などより小さな単位に分割します。
各コンテンツは単一の巨大なプロンプトではなく、AI 審査員による一連の評価を経ます。つまり、Flo は医療的正確性、法的コンプライアンス、ブランドスタイルなど、レビューの各次元ごとに専用の大規模言語モデル(LLM)プロンプトを実行します。これにより、個々のコンテンツに対して詳細なフィードバックを得ることができます。
審査員の回答を受け取った後は、MACROS フローに従って生成 AI による修正の入力として活用します。Amazon Bedrock を使用して、指摘された課題を解決するより良いテキスト案を生成します。これらの提案は Contentful アプリの UI に直接表示され、変更箇所がハイライトされるため、コンテンツ編集者や医療専門家は、慣れ親しんだワークフロー内で推奨版を選択・編集したり、元のバージョンを維持したりしてレビューできます。

人間が最終決定権を握り、AI は専門家アシスタントとして機能します。各行の判断が完了すると、アプリは Contentful 内の該当エントリに最終コンテンツを更新します。
パイプライン
以下の図は、すべての AI レビュー段階を一つのフローに接続した様子を示しています。各ステップの結果は準備ができ次第読み込まれるため、ユーザーが待ち時間を感じることはありません。

AI によるコンテンツ生成システム
AI コンテンツレビューのワークフローにおいて Amazon Bedrock を基盤として導入し、その成功を受け、同じサービスを活用してコンテンツ作成の加速を図りました。
日常的な業務を自動化し、認知負荷を軽減するための AI 生成ツールが必要でした。これにより、グラフを一から手作業で作成する必要なく、リクエストを迅速にドラフト作成できるようになりました。
思考連鎖プロンプトの利用
生成パイプラインでは、多段階の「思考連鎖(Chain-of-Thought)」アプローチを採用しています。

重要な最適化の一つは、タスクに応じて異なる Amazon Bedrock 上の Anthropic製 Claude モデルを使い分けることです。例えば、軽量な分類やルーチン分析(ユーザーが生成を希望するステップ数の特定など)には、高速かつ低コストの「Claude Haiku」モデルを採用しています。
一方、高品質なコンテンツ生成や複雑な推論が必要なケース(微妙なニュアンスを持つ医療解説の作成や、特定の共感的なトーンで段落を書き直す作業など)では、より高性能な「Claude Sonnet」モデルを呼び出します。
Retrieval Augmented Generation(RAG)
女性の健康という専門領域において生成 AI ツールを構築するには、モデル内部に収まりきらない膨大な文脈情報を取り込む必要があります。そこで私たちは RAG(検索拡張生成)を採用しました。
具体的には、LLM による推論実行時に、必要な情報だけを知識ベースから抽出し、モデルのコンテキストとして読み込ませます。例えばコンテンツ作成時には、そのトピックに関連するガイドラインやルール、医学的知見、既存のテンプレート、あるいは視覚素材のリファレンスなどをシステムが自動的に検索・取得します。
これらの知識ベース資料は、製品チーム、編集チーム、そして医療チームが連携した反復的なプロセスを通じて開発・維持されています。特に安全性に関する範囲については、医療チームが責任を持って管理しています。
さらに、エビデンスに基づく臨床意思決定ツールや査読付き学術誌、規制当局の発表など、信頼性の高い第三者の医学情報源も統合しました。生成された各コンテンツには、参照に使用したソース一覧を自動的に記録・保存するため、医療レビュー担当者は手動で検索することなく、直接出典を確認して検証することが可能です。
ユーザーエクスペリエンス
AI 生成の各段階をユーザーに明確に示し、説明することで、不整合点を早期に発見できるようにしました。また、各工程が完了するたびに中間結果を順次表示して待機時間を削減し、パイプライン全体が終了する前にレビューを開始できる仕組みも整えています。さらに、デザイン要素やコンテンツ同士(画面間)の接続関係を可視化することで、ユーザーがスマホで何度もエクスポートしてテストする必要をなくしました。
以下のアニメーションは、AI 生成時のユーザーエクスペリエンスを示しています。

アーキテクチャ
以下の図は、当社の AI コンテンツ生成アーキテクチャを示しています。

コンテンツ作成者は、馴染み深い Contentful App の環境から生成リクエストを開始します。システムはその後、手作業を最小限に抑えつつ、医学的根拠に基づきガイドラインに沿ったコンテンツを生成するための一連のステップをオーケストレーション(調整・実行)します。
リクエストは Amazon API Gateway を経由してルーティングされ、UI とリアルタイムで通信を行います。これにより、作成者は進捗状況を即座に確認できます。
コアとなるパイプラインには、以下の 3 つのステップがあります:
まず、システムは Amazon Bedrock を介したセマンティック検索(意味検索)により、Amazon S3 に保存されたナレッジベースから関連する医療ガイドライン、ルール、および文脈情報を取得します。これにより、生成されるコンテンツが医学的知識に基づいたものになります。
次に、Anthropic の Claude ファウンデーションモデルを Amazon Bedrock を通じて活用し、S3 内のテンプレートやアセットリポジトリからデータを参照しながらコンテンツを構造化します。これによって、ステップごとのコンテンツフローを生成しつつ、フォーマットの一貫性を維持しています。このワークフローの調整は AWS Lambda 関数が担っています。
最後に、Amazon Bedrock を用いて、生成されたコンテンツが医学的に正確か、ブランドガイドラインに準拠しているかを検証する工程があります。問題が発見された場合はフィードバックループが自動的に作動し再処理が行われるため、クリエイターが受け取るのは常に検証済みの出力のみとなります。
ナレッジベース、医療参照資料、コンテンツテンプレート、そして視覚アセットはすべて Amazon S3 に保存されており、パイプライン全体の状態やメタデータの管理には Amazon DynamoDB が利用されています。AWS Step Functions がエンドツーエンドのワークフローを調整しており、モジュール設計のため、新たなコンテンツタイプや検証要件が発生しても柔軟に拡張可能です。
影響、洞察、そして教訓
これらの生成 AI ツールの開発を通じて、チームはプロンプトエンジニアリングの実践的な応用について貴重な知見を得ました。
YAML と JSON の比較
出力フォーマットとしては、YAML を JSON よりもはるかに堅牢であると実感しました。インデントに基づく構造が柔軟で、無効な出力が発生しにくく、デバッグも容易です。当初の実装以降、Amazon Bedrock が構造化出力機能を導入しました。これは API レベルでスキーマに合致した JSON 応答を強制するもので、同様のフォーマット整合性の課題を抱えるチームにとって有力な代替手段となり得ます。
ルールよりも具体例を重視
プロジェクトが拡大するにつれ、ルールセットは膨大になり、時には互いに矛盾してモデルの優先順位付けを難しくしていました。回避すべき事項を列挙するのではなく、私たちが何を意図しているのかを示す具体的な事例(Few-shot examples)でルールを補強したところ、エラーが大幅に減少しました。具体例を取り入れることで、出力の遵守性が一貫して向上しました。
AI は人間の専門家への代替ではなく、知能化されたアシスタント
私たちのプロダクション戦略は、人間の専門性を排除するのではなく、3 つの重要なワークフロー段階で補完することに焦点を当てています。
1. 知的な事前スクリーニング
AI が検証が必要な医療主張を特定し、専門家による注力が必要となるセクションを抽出します。さらに、医療ガイドラインに基づいた初期のコンプライアンスチェックも実行します。これにより、専門家の作業開始地点は「白紙の状態」から「明確な注目領域が示された事前注釈付きドキュメント」へと変化しました。
2. リアルタイムのコンテンツ支援
ライターは執筆中に、医学的正確性やスタイル準拠、出典記載要件について即座にフィードバックを受けられます。これにより、医学専門家のレビュー段階に至る前に問題を発見・修正できます。
3. 専門家によるレビュー体験の向上
医学専門家は、AI が注釈を付けたコンテンツを受領します。懸念箇所がハイライトされ、修正案や事前に調査済みの関連資料も提示されるため、専門家は AI の洞察の妥当性確認や、人間の判断が必要な複雑な医学的ニュアンスの検証に集中できます。
構造化されたフィードバックループの力
専門家の修正を単発的な編集として扱うのではなく、再利用可能なルールや例として蓄積する仕組みを作りました。これによりレビューサイクルごとにシステムが賢くなり、繰り返されるミスを70%以上削減できました。また、日常的なコンプライアンス関連の修正も80%減らし、コンテンツ1件あたりの平均レビュー時間を60%短縮しています。医療チームの規模拡大なしに、コンテンツ処理能力を3倍に引き上げることができたのです。
一般化よりも特化が勝る
医学ガイドラインや情報源の優先順位、コンテンツ基準に特化して構築し、合成データと実在する匿名事例を組み合わせた事前定義されたテストセットを用いて各「判定モデル(Judge)」を評価した結果、初回提出時の精度に一貫した向上が見られました。これにより、AI の出力に対して完全な再検証を行う必要性も大幅に減っています。
今後の方向性
システムの機能拡張に伴い、私たちは「信頼度スコアリング」の導入を検討しています。これは医療専門家と共同で策定した基準に基づき、コンプライアンス履歴、ガイドラインの優先度、内容の複雑さを総合的に評価するものです。一定の閾値を超えたコンテンツは迅速なレビュー対象とし、リスクが高いと判断されたものはさらに厳重な審査を行います。
また、このアプローチを視覚コンテンツへも拡張すべく検討を進めています。インフォグラフィックやイラストレーションなど、あらゆる視覚素材が同じく厳しい基準を満たしているかを確認する仕組みです。
同様の導入を検討する組織に向けて、以下のポイントを推奨します。
- 明確で文書化された基準をまず策定すること
- 初日から継続的な学習が可能となるよう設計すること
- 効率性と品質の両方を測定指標とすること
- ユーザー体験への投資を惜しまないこと
- 実績による信頼構築を経て、段階的に展開計画を立てること
Flo Health ではこのアプローチにより、コンテンツの質を維持しつつ、処理能力を大幅に拡大することができました。
*以上が Flo Health エンジニアリングチームからの視点です。*
まとめ
本稿では、Flo Health のエンジニアリングチームが、MACROS の概念実証(PoC)を実運用可能な医療コンテンツのレビューおよび生成システムへと転換させた事例を紹介しました。このシステムは Amazon Bedrock を活用しています。
成功の鍵は完全な自動化ではなく、専門的な AI ジャッジと構造化されたフィードバックループ、そして段階的なモデル選定戦略を組み合わせることにありました。これにより、厳格な医療精度基準を維持しつつ、コンテンツ処理量を大幅に増やすことが可能になりました。
同様のコンテンツレビューや生成システムを構築したい場合は、まずドメイン固有の品質基準を定義し、その後 Amazon Bedrock を活用して、専門的な AI ジャッジのプロトタイプを作成することから始めてください。
原文を表示
*This post was written by Konstantin Lekh, Sasha Zinchuk, and Eugene Sergueev from Flo Health, and Liza (Elizaveta) Zinovyeva from AWS.*
In this post, we share how Flo Health’s engineering team turned a proof of concept (PoC) from the AWS Generative AI Innovation Center into a production-grade, AI-powered medical content review and generation system built on Amazon Bedrock. This system reduced review time by 60 percent and tripled content throughput without expanding the medical team. We cover four areas: (1) adapting the PoC architecture for Flo Health’s content pipeline, (2) implementing specialized AI Judges for different review dimensions, (3) building an AI content generation system with Retrieval Augmented Generation (RAG), and (4) lessons learned from prompt engineering and production deployment. Part 1 of this series covers the initial proof of concept.
*This post reflects the perspective of the Flo Health engineering team.*
At Flo Health, we create diverse content to support millions of users on their health journey: from in-app stories and articles to onboarding flows and marketing materials. Every piece of content, whether textual or visual, must meet our rigorous medical accuracy standards outlined in our guidelines. While we’ve successfully integrated AI tools to accelerate content creation for editors and designers, medical review remained our critical bottleneck.

Content creation challenges
Our medical experts spend an average of seven working days per article, meticulously verifying facts, checking references against trusted sources, and facilitating compliance with our 10-point medical accuracy checklist. This thorough process, while essential for maintaining trust and safety, limited our ability to scale content production and keep pace with user needs.

The challenge goes beyond time constraints. Scaling a medical review team presents unique difficulties: qualified medical professionals with content expertise are scarce, recruitment is hard and time-consuming, and the cost of expanding such specialized teams is substantial. The traditional scaling approach of hiring more reviewers is not sustainable or economically viable. Instead, we needed to find ways to amplify the impact of our existing medical experts by making their time more efficient and their expertise more scalable.
While general-purpose AI tools have shown impressive capabilities, they present significant risks for medical content review. These systems can generate information that has no grounding in underlying references or facts, commonly referred to as hallucinations. At Flo, where millions of users rely on our educational content to better understand their bodies and health, accuracy and trust are paramount. We needed a solution designed specifically to provide information only from reliable medical sources, with clear references to every piece of information it presents.
AWS proof of concept as a starting point
The PoC’s success presented us with an exciting opportunity to transform how we approach medical content review. We chose a gradual adoption strategy by scaling our medical experts’ capabilities while building trust through continuous validation.
Our production implementation follows a three-layer validation approach. First, the system checks content against our *internal medical guidelines*, flagging potential issues and suggesting corrections based on our established rules. It then validates the content against *trusted external medical sources*, from evidence-based clinical decision tools to peer-reviewed journals and regulatory bodies. Finally, our *medical experts review* the AI-annotated content in a streamlined interface that highlights which rules were applied and provides direct links to relevant sources, simplifying fact-checking.
Our primary success metrics focus on two areas: reducing review time and minimizing the number of corrections required by experts.
AI review system
In this section, we explore how we integrated, transformed, or extended PoC solution components into a production-ready system that scales medical review capabilities.
The *AI Review tool* reduces the feedback loop between content creators and medical reviewers. With AI Review, better quality content reaches the human review stage, and the number of iterations decreases.
We began by tailoring the MACROS architecture identified during the proof-of-concept to Flo’s content model.
At Flo, we created a set of AI Judges, each having its own prompt, and a set of examples for training and testing. Each Judge focuses on a specific review dimension: medical accuracy, legal compliance, brand style, and more.

We test each Judge with different models and choose the best fit for each based on the required quality threshold, risk level, latency, and operating cost. For medical safety or other high-risk checks, accuracy and reliability take priority. For simpler or lower-risk checks, a lighter model is appropriate if it meets the required performance threshold. This approach allows us to improve each Judge independently by adding more examples, customizing the prompt, and improving accuracy, while keeping the other Judges unchanged, avoiding regression issues.
Flo Health’s content pipeline embraces the MACROS patterns introduced by Amazon and adapts them to real-world production in Flo’s Contentful CMS. The proposed MACROS strategy of splitting text into manageable sections fits well with our existing architecture, because our graphs (surveys and chats) are stored in an already pre-chunked format, so each step is a separate content entry.

Before sending for assessment, we split each step into smaller pieces, such as button text, title, description, and more.
Every piece of content undergoes a *series of AI Judge evaluations* rather than one monolithic prompt. This means Flo runs specialized large language model (LLM) prompts for each review dimension (medical accuracy, legal compliance, brand style, and more). This way, we get detailed comments for each piece of content.
After we get Judges’ replies, we use them as input for further generative AI revisions, following the MACROS flow. Using Amazon Bedrock, we generate proposals for better texts that address the concerns found. These suggestions are presented directly in the Contentful app UI, with changes highlighted, so that content editors and medical experts can review, select or edit the preferred version (or even keep the original) within their familiar workflow.

The human reviewer remains in control while using AI as an expert assistant. Once a decision is made for each line, the app updates the content entry in Contentful with the final content.
Pipeline
The following figure shows all AI Review stages connected into one flow. Results for each step are loaded when ready, so users don’t experience delays.

AI content generation system
After successfully onboarding Amazon Bedrock as the foundation for our AI content review workflow, we wanted to reuse the same service to accelerate content creation.
We needed an AI generation tool to automate routine operations and reduce cognitive load: Requests can be quickly drafted without the need to manually create a graph from scratch.
Chain-of-thought prompting
The generation pipeline uses a multi-stage chain-of-thought prompting approach:

A key optimization was using different Claude by Anthropic in Amazon Bedrock AI models for different jobs. For *lightweight* classification and routine analysis, for example to determine how many steps the user wants to generate, we use the faster, lower-cost Claude Haiku model.
For *high-fidelity content generation* or complex reasoning (such as drafting a nuanced medical explanation or rewriting a paragraph in a specific empathetic tone), we invoke the more powerful Claude Sonnet models.
Retrieval Augmented Generation
Building generative AI tools in a domain like women’s health required incorporating a lot of context that lives outside the model. We tackled this with RAG. In practice, for inference with an LLM, we gather only relevant information from our knowledge base and feed it into the model’s context. For example, when drafting content, the system retrieves relevant guidelines, rules, medical knowledge and existing templates or visual asset references for the topic at hand. These knowledge base materials are developed and maintained through an iterative process involving product, editorial, and medical review, with the medical team owning the safety scope.
We also integrated trusted third-party medical sources, such as evidence-based clinical decision tools, peer-reviewed journals, and regulatory body publications. The system persists the list of sources used alongside each piece of generated content, so medical reviewers can validate references directly without manual searching.
User experience
We focused on clearly illustrating and explaining every stage of AI generation to users so they can identify inconsistencies early. We also mitigated idle waiting times by progressively displaying intermediate results as each stage completes, so users can begin reviewing output before the pipeline finishes. Finally, we aimed to visualize all design elements and connections between content pieces (screens), alleviating the need for users to repeatedly export and test content on their phones. The following animation demonstrates the AI generation user experience.

Architecture
The following figure shows our AI content generation architecture.

Content creators initiate a generation request from the familiar Contentful App environment. The system then orchestrates a series of steps designed to produce medically grounded, guideline-aligned content with minimal manual effort.
Requests are routed through Amazon API Gateway, which maintains real-time communication with the UI, so creators see progress instantly.
The core pipeline has three steps:
- First, the system retrieves relevant medical guidelines, rules, and contextual information from our knowledge base in Amazon Simple Storage Service (Amazon S3) using semantic search through Amazon Bedrock. This way, the generated content is grounded in medical knowledge.
- Next, the system structures the content using Claude Foundation Models by Anthropic through Amazon Bedrock, pulling from our template and asset repository in Amazon S3 to maintain consistent formatting while generating the step-by-step content flow. AWS Lambda functions orchestrate this workflow.
- Finally, a validation step checks the generated content for medical accuracy and brand guideline compliance using Amazon Bedrock. If issues are detected, the feedback loop automatically triggers reprocessing, so content creators receive only validated output.
Our knowledge base, medical reference documents, content templates, and visual assets, lives in Amazon S3, with Amazon DynamoDB managing state and metadata across the pipeline. AWS Step Functions orchestrates the end-to-end workflow, and the modular design means we can extend to new content types or validation requirements as they emerge.
Impact, insights and lessons learned
Developing these generative AI tools provided our team with valuable insights into the practical application of prompt engineering.
YAML vs. JSON
We found YAML far more robust than JSON as an output format. Its indentation-based structure is more forgiving, leading to fewer invalid outputs and easier debugging. Since our initial implementation, Amazon Bedrock has introduced structured outputs, which enforces schema-aligned JSON responses directly at the API level and could be a viable alternative for teams facing similar format consistency challenges.
Examples vs. rules
As the project grew, the rule set becomes massive and sometimes conflicting, making it harder for the model to prioritize correctly. Enriching rules with concrete examples showing the model what we actually mean rather than stating what to avoid led to significant error reduction. Few-shot examples consistently improved output adherence.
AI as intelligent assistant, not replacement
Our production strategy centered on augmenting, not replacing, human expertise across three critical workflow stages:
1. Intelligent pre-screening – AI flags potential medical claims that need validation, identifies sections requiring expert attention, and runs preliminary compliance checks against our medical guidelines. This transforms our experts’ starting point from a blank page to a pre-annotated document with clear focus areas.
2. Real-time content assistance – Writers receive immediate feedback on medical accuracy, style compliance, and citation requirements as they draft, catching issues before they reach medical expert review.
3. Enhanced expert review experience – Medical experts receive AI-annotated content with highlighted concerns, suggested revisions, and relevant pre-researched source materials, letting them focus on validating AI insights and complex medical nuances that require human judgment.
The power of structured feedback loops
By capturing every expert correction as reusable rules and examples rather than one-off edits, we built a system that grows smarter with each review cycle, reducing repeated errors by over 70 percent. This approach also reduced routine compliance corrections by 80 percent and cut average review time per content piece by 60 percent. It tripled content throughput without expanding the medical team.
Specificity beats generalization
Building specifically around our medical guidelines, source hierarchy, and content standards, and measuring each Judge against predefined test sets combining synthetic and real anonymized cases, delivered consistent improvement in first-pass accuracy and reduced the need for full re-verification of AI output.
Future directions
As we expand the system’s capabilities, we’re exploring confidence scoring, defined together with medical experts based on compliance history, guideline priority, and complexity, where content above certain thresholds receives expedited review, while higher-risk content gets additional scrutiny. We’re also investigating extending this approach to visual content, making sure infographics, illustrations, and other visual materials meet the same rigorous standards.
For organizations considering similar implementations, we recommend the following:
- Start with clear, documented standards.
- Design for continuous learning from day one.
- Measure both efficiency and quality.
- Invest in user experience.
- Plan for gradual rollout, as trust builds through demonstrated success.
At Flo Health, this approach has allowed us to maintain high content standards while scaling our capacity.
*That concludes the perspective from the Flo Health engineering team.*
Conclusion
In this post, we showed how Flo Health’s engineering team transformed the MACROS proof of concept into a production-ready medical content review and generation system that uses Amazon Bedrock.
The key to success wasn’t full automation but combining specialized AI Judges, structured feedback loops, and a tiered model selection strategy to maintain rigorous medical accuracy standards while increasing content throughput.
If you’re looking to build a similar content review or generation system, start by defining your domain-specific quality standards, then use Amazon Bedrock to prototype specialized AI jud
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み