| @@ -361,19 +361,11 @@ | ||
| 361 | 361 | <p class="mxch-form-hint"><?php esc_html_e('A descriptive name for this action (for your reference only).', 'mxchat'); ?></p> |
| 362 | 362 | </div> |
| 363 | 363 | |
| 364 | 364 | <div class="mxch-form-group"> |
| 365 | - <label><?php esc_html_e('Trigger Phrases', 'mxchat'); ?></label> | |
| 366 | - <div class="mxch-phrase-input-wrapper"> | |
| 367 | - <div class="mxch-phrase-tags" id="mxch-phrase-tags"> | |
| 368 | - <!-- Phrase pills rendered dynamically --> | |
| 369 | - </div> | |
| 370 | - <div class="mxch-phrase-add-row"> | |
| 371 | - <input type="text" id="mxch-phrase-input" placeholder="<?php esc_attr_e('Type a trigger phrase and press Enter', 'mxchat'); ?>"> | |
| 372 | - <button type="button" class="mxch-btn mxch-btn-sm" id="mxch-add-phrase-btn"><?php esc_html_e('Add', 'mxchat'); ?></button> | |
| 373 | - </div> | |
| 374 | - </div> | |
| 375 | - <p class="mxch-form-hint"><?php esc_html_e('Each phrase gets its own embedding vector for more accurate matching.', 'mxchat'); ?></p> | |
| 365 | + <label for="mxch-action-phrases"><?php esc_html_e('Trigger Phrases', 'mxchat'); ?></label> | |
| 366 | + <textarea id="mxch-action-phrases" name="phrases" rows="4" required placeholder="<?php esc_attr_e('sign me up, subscribe me, I want to join, add me to the newsletter', 'mxchat'); ?>"></textarea> | |
| 367 | + <p class="mxch-form-hint"><?php esc_html_e('Comma-separated phrases that will trigger this action.', 'mxchat'); ?></p> | |
| 376 | 368 | </div> |
| 377 | 369 | |
| 378 | 370 | <div class="mxch-form-group"> |
| 379 | 371 | <label for="mxch-action-threshold"> |