digitalfabrik / integreat-chat

MIT License
0 stars 0 forks source link

Render "Talk to Person" button #25

Open svenseeberg opened 2 months ago

svenseeberg commented 2 months ago

Automatic answers should contain a button "talk to human". This will be normal HTML and the app has to render it as a button that triggers a specific message (i.e. "User wants to talk to human").

Zammad can use this text with a trigger to forward the issue to a human.

svenseeberg commented 1 week ago

Alternative: new / amended Integreat CMS API endpoint that does something special to Zammad.

svenseeberg commented 1 week ago

Do we need other buttons as well? We should probably discuss some kind of "actions schema". Currently, the API response contains a messages attribute. We could add an available_actions attribute?

{
  "messages": [],
  "available_actions": ["request_human", "end_chat"],
}

Alternatively, the actions could be per message, and usually only the actions for the latest message are rendered/shown.