Chat action: "Token input" - what does it do?
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3585001. --> Reported by: [ultimike](https://www.drupal.org/user/51132) >>> <p>When using the Chat action, I can't seem to figure out what the "Token input" configuration field actually does.</p> <p>I assumed that any tokens I added to this field would be replaced and added to the prompt, but this does not seem to be the case.</p> <p>When I need to use a token value in the prompt, I have to add it the usual way - directly in the prompt (with square brackets.) </p> <p>Looking at the code, it looks like the "Token input" token value is replaced and stored as configuration, but never used (<a href="https://git.drupalcode.org/project/ai_integration_eca/-/blob/1.0.x/src/Plugin/Action/Chat.php?ref_type=heads#:~:text=%24data,%7D">https://git.drupalcode.org/project/ai_integration_eca/-/blob/1.0.x/src/Plugin/Action/Chat.php?ref_type=heads#:~:text=%24data,%7D</a>)</p> <p>What am I missing?</p> <p>thanks,<br> -mike</p>
issue