Problem/Motivation

Contact center wants to be able to copy the output.
Since they can use the suffix field to add the button themself, we only need to add in the JS that grabs the content and adds it to clipboard.

Comments

wouters_f created an issue. See original summary.

wouters_f’s picture

If you use a link with class "ai-search-block-copy-output" when clicking that link it will take the output of the ai search block and add it to the clipboard.
This is practical in a contact center setting. Later this might move to a separate submodule.
Add the following in the suffix text:
<a href="javascript://" class="ai-search-block-copy-output" >Copy the answer</a>

wouters_f’s picture

Status: Active » Needs review
wouters_f’s picture

Assigned: wouters_f » Unassigned
wouters_f’s picture

This one is as good as done.
Seems to work for me.

jasdeba’s picture

Status: Needs review » Fixed

Tested on version 1.0.0-rc21
This is working.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.