Title: Set parameters for shortcode dynamically?
Last modified: April 11, 2023

---

# Set parameters for shortcode dynamically?

 *  Resolved [chcw](https://wordpress.org/support/users/chcw/)
 * (@chcw)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/set-parameters-for-shortcode-dynamically/)
 * Hi,
 * Currently I hardcode the parameters for the bot in shortcode, such as
 * [mwai_chat context=”xxx” tempeture=”0.5″]
 * So that the shown form will always use these fixed parameters.
 * I just wonder if it is possible to let me set them dynamically, for example, 
   I input context & tempeture in a form, and click “Submit”, then the message form
   will generated based on the input parameters.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fset-parameters-for-shortcode-dynamically%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/set-parameters-for-shortcode-dynamically/#post-16644737)
 * Hi [@chcw](https://wordpress.org/support/users/chcw/),
 * Have a look here: [https://meowapps.com/ai-engine/api/](https://meowapps.com/ai-engine/api/).
   You can play with the mwai_chatbot_params_before filter to set the parameters
   dynamically 🙂

Viewing 1 replies (of 1 total)

The topic ‘Set parameters for shortcode dynamically?’ is closed to new replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

## Tags

 * [dynamically](https://wordpress.org/support/topic-tag/dynamically/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/set-parameters-for-shortcode-dynamically/#post-16644737)
 * Status: resolved