Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint to receive conversation automation rules and save the automation actions #3341

Closed
3 tasks done
tejaswinichile opened this issue Nov 8, 2021 · 1 comment · Fixed by #3359
Closed
3 tasks done
Assignees

Comments

@tejaswinichile
Copy link
Contributor

tejaswinichile commented Nov 8, 2021

Input:

We will receive JSON structure like below at the backend

{
  automation_name: "Paid Plan: Conversation Automation"
  automation_description: "Silver Paid Plan, Customer Conversation Automation"
  automation_event: "Conversation Created" {dropdown}
  automation_conditions: [
    {
      automation_conditions_attribute: plan /* Custom Attribute */
      automation_conditions_operator: EQUALS TO
      automation_conditions_value: Silver
    },
    {
      automation_conditions_attribute: Country /* Custom Attribute */
      automation_conditions_operator: EQUALS TO
      automation_conditions_value: USA
    }
  ]
  automation_actions: [
    Send Message: 
      { 
        Message: 'Welcome to the chatwoot platform.' 
      },
    Assing to team : "Customer Success"
    Add Label: [ priority_customer ],
    Assign Best Agents: [ 1,2,3,4 ] /*  Dropdown Agent Names */
    Update Additional Attributes: [
      intiated_at: Time.now
    ]
  ]
}
  • 1. The endpoint should read the JSON and take the action accordingly.
  • 2. Create a database model for automation rules.
  • 3. Check event calling for dynamic automation actions.
@github-actions
Copy link

github-actions bot commented Aug 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant