Variable assignment using natural language programming with AI

For example, if you use the web importer,
{chart={site: text; selector=.css-8u2jis; page=https://karte.medley.life/*; select=ifneeded}}
you can store the contents of the medical record in a variable called “chart”.

Is it possible to use AI to set the variable “exercise insufficiency” to “yes” if the contents of “chart” include a description of “exercise insufficiency” or “lack of exercise”?

Hi @N_Saito,

Yes, you can do that by using our Open AI command pack. Here is an example of how to do so.

Let me know if you have further questions.

{note}
{chart={site: text; selector=.css-8u2jis; page=https://karte.medley.life/*; select=ifneeded}}

{openai-text: Does the following medical chart text contain descriptions of exercise insufficiency or lack of exercise? Reply with only "yes" or "no" lowercase:

{=chart}; trim=left; name=exercise_insufficiency}
{endnote}
exercise_insufficiency = {=exercise_insufficiency}

@Ashwin_MittalTB
Sorry for the late reply, it si working fine, but it may be incorrect. I will try to devise a prompt.

Thanks, @N_Saito, for the response.

Please let me know if you have further questions on this.