Here we map our AI actions to the prompt from the JSON file to be able to use them.
If it was opened at the top of the composer, it could go off screen to the top. modalHeight was missing so the calculateModalPosition method could not protect the AI scribe menu to go off screen from the top.