> For the complete documentation index, see [llms.txt](https://help.qwary.com/product-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qwary.com/product-guide/workflows/salesforce-workflow/map-survey-response-data-into-salesforce/create-event-based-salesforce-workflow.md).

# Create event-based Salesforce workflow

Create an event-based workflow in Qwary to map your response data into Zendesk.

**Create event-based workflow**

1. Create an event-based workflow from Workflow --> Create new workflow --> Enter name --> and click Create.
2. Click on Add a Trigger and select the survey you created for ["Create an email campaign for Salesforce Case/Opportunity"](/product-guide/workflows/salesforce-workflow/create-an-email-campaign-for-salesforce-case-opportunity..md)
3. Add 'Salesforce - Update a case/opportunity with rating and survey response in SalesForce' task/
4. Connect your Salesforce account.
5. Select score and comment questions for the task. Depending on the matrix you are collecting, the score questions can be NPS, Satisfaction Score, or Effort Score questions from your survey. A comment question is an open-ended comment question from your survey.

<figure><img src="/files/jOv8BMp9t1JrZ8lR1v2x" alt=""><figcaption><p>Salesforce task</p></figcaption></figure>

6. Click on save.
7. Active the workflow.

Once the workflow is active, when a new response is received for a case or opportunity campaigns, response data will mapped to Salesforce.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.qwary.com/product-guide/workflows/salesforce-workflow/map-survey-response-data-into-salesforce/create-event-based-salesforce-workflow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
