# Photo capture and feed to an AI model 

**URL:** <https://forum.communityhealthtoolkit.org/t/photo-capture-and-feed-to-an-ai-model/5531>\
**Category:** Development\
**Tags:** ai, photo\
**Created:** [March 10, 2026, 2:51pm UTC](https://forum.communityhealthtoolkit.org/t/photo-capture-and-feed-to-an-ai-model/5531 "2026-03-10T14:51:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jkuester](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/jkuester/32/806_2.png) [@jkuester](https://forum.communityhealthtoolkit.org/u/jkuester)\
**Post date:** [March 10, 2026, 4:07pm UTC](https://forum.communityhealthtoolkit.org/t/photo-capture-and-feed-to-an-ai-model/5531/4 "2026-03-10T16:07:35Z")

</div>

@Chetan_Gupta welcome! Thank you for sharing your workflow!

I think when you say “JS extension script” you might be talking about [extension-libs](https://docs.communityhealthtoolkit.org/building/reference/extension-libs/). Currently, extension-libs are a powerful tool for doing _synchronous_ processing on input data. However, they may not be appropriate for many types of AI workloads which may need to be more interactive or _asynchronous_.

One good option for more complex workflows might be to leverage the [Android app launcher](https://docs.communityhealthtoolkit.org/building/forms/app/#android-app-launcher) functionality. Basically you implement the core of your AI workflow as an Android app (installed on the device alongside the [cht-android app](https://docs.communityhealthtoolkit.org/technical-overview/architecture/cht-android/)). Then, in your CHT form you can configure the form to launch your target Android app (providing desired input data from the form) via a normal [Android intent](https://developer.android.com/reference/android/content/Intent). The user continues the workflow in the other app and when that completes, the user can be automatically re-directed back into the CHT form (along with response data from the external app).

[Audere](https://www.auderenow.org/testnow) has recently used this approach for integrating with the CHT to use the HealthPulseAI to evaluate photos of RDT tests. I would definitely encourage you to join us in the [CHT Roundup Call](https://forum.communityhealthtoolkit.org/t/join-us-for-the-march-2026-round-up-ai-powered-diagnostics-and-whats-new-in-cht-v5-1/5524) this Thursday (March 12th)! It is going to feature a presentation about the deployment of this functionality in Kenya and Uganda.

Another angle that may be worth considering is that we are currently developing a [UI Extension framework](https://github.com/medic/cht-core/issues/10224) for the CHT that will allow custom web components to be rendered within the CHT application. The first iteration is not going to integrate directly with CHT forms, but it would allow for an interactive custom page within the app that might provide the power and flexibility needed for your workflow. Unfortunately, development for this feature is currently just beginning… 😅

---

_[View the full topic](https://forum.communityhealthtoolkit.org/t/photo-capture-and-feed-to-an-ai-model/5531)._
