# Using the Peoplevox setData script  in process flows

## Introduction

Having installed the Peoplevox connector and applied pre and post request scripts, you're ready start using the connector in process flows.

If you build a process flow with Peoplevox defined as a **target** [connection shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/connector-shape.md), you must always include a [script shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/advanced-shapes/script-shape.md) immediately before the connection shape, and associate this with the [setData custom script](/product-documentation/connectors-and-instances/patchworks-connectors/descartes-peoplevox-prebuilt-connector/the-peoplevox-setdata-script.md#stage-3-create-a-setdata-script). This script takes care of data conversions that are required before sending data into Peoplevox.  &#x20;

{% hint style="info" %}
You should have already created all required custom scripts but if you haven't, please complete steps detailed on [this page](/product-documentation/connectors-and-instances/patchworks-connectors/descartes-peoplevox-prebuilt-connector/the-peoplevox-setdata-script.md) before proceeding.
{% endhint %}

## The steps

**Step 1**\
[Build your process flow](/product-documentation/process-flows/building-process-flows.md) in the usual way, including a [connection shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/connector-shape.md) configured for Peoplevox as a target.

**Step 2**\
Immediately before the Peoplevox connection, add a [script shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/advanced-shapes/script-shape.md) - for example:

<figure><img src="/files/Gz9M0x3hXgrQWXW79KOK" alt=""><figcaption></figcaption></figure>

**Step 3**\
In **custom script settings**, select the **PVX setData** script:

<div align="left"><figure><img src="/files/IDY7nCnQvUl7r0NyFUvK" alt=""><figcaption></figcaption></figure></div>

**Step 4**\
Save the shape - the script is added to you flow:

<div align="left"><figure><img src="/files/BJdcSW7Bw86xc82oZ9Ph" alt="" width="276"><figcaption></figcaption></figure></div>


---

# Agent Instructions: 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:

```
GET https://doc.wearepatchworks.com/product-documentation/connectors-and-instances/patchworks-connectors/descartes-peoplevox-prebuilt-connector/the-peoplevox-setdata-script/using-the-peoplevox-setdata-script-in-process-flows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
