Skip to main content

Creating Contact Using MEVA

Scenario: A new user is chatting in the webchat and the contact is created in the application after the user provides their basic information

Flow:

To design the flow we require,

  1. Choice Node

  2. Prompt Response Node

  3. API Node

Construction:

  1. Click on the "+New" button in the Flows section.

  2. Add a flow name, "Contact Creation".

  3. Click on "OK".

  4. In the Flowiz Builder page, click on the "Click to add node" area.

  5. From the pop-up select the Choice node.

  6. Configure the choice node(to check if the user is a guest or an existing user),

    a. Add the name of the choice node - "check contact".

    b. Add context-variable in the prompt, "{{input.contact.is_guest}}== False "

    c. "Save" the node.

  7. Click on the "Yes" node. From the pop-up select "Prompt-Respnse" node.

  8. Configure the prompt-response node,

    a. Add a name to the response node - "contact response".

    b. Add a prompt, such as, "Welcome back! How can I assist you today? I'm here to help."

    c. Save the node.

  9. Click on the "No" node. From the pop-up select API node.

  10. Configure the API node,

    a. Add a name to the API node - "create contact".

    b. Add the required URL.

    c. Select "METHOD" as "POST".

    d. Add required Headers.

    e. Save the node.

  11. "Save" the flow by clicking on the top-right screen.

  12. Click on the "Publish" button to publish the flow.

The flow can be previewed by clicking on the "Preview" button on top-right of the page.