Configuring AI Block by Formula

If I wish to have a button to configure a new AI block, how do I configure the propmt, length, tone, and type of AI response via a formula?