3sd / civicrm-chatbot

A chatbot for CiviCRM
Other
6 stars 4 forks source link

CiviRules integration #11

Closed michaelmcandrew closed 6 years ago

michaelmcandrew commented 6 years ago

@summerse said

regarding the trigger for chat conversations - it seems as though we'd need the condition to activity is one of an inbound chat. And then the linked action would be to trigger a conversation. And conversation still does not appear as an option in the "Select action" list. Unless I'm somehow still missing something, I'm not sure otherwise how we'd determine which conversation gets triggered based upon an incoming chat.

michaelmcandrew commented 6 years ago

@summerse, I've created a small additional extension that exposes the start conversation trigger (very similar to what we had in sms conversation) except this time, you also define the chat service that you want to use. You'll need to enable that separately from the core chatbot extension.

incoming and outgoing chat should be available as activity types to filter on.

FWIW, there is also a ChatHear entity which can be used as a simpler way to listen for and start conversations based on keywords but that is not exposed via the UI at present.

Hopefully this works for you. Please re-open the issue if not.