***

title: params
slug: /reference/python/agents/data-map/params
description: Set query or form parameters for the most recently added webhook.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-datamap]: /docs/server-sdks/reference/python/agents/data-map

[body]: /docs/server-sdks/reference/python/agents/data-map/body

Set request query/form parameters for the most recently added webhook. Writes
to the `params` key of the webhook definition.

<Warning>
  `params()` is **not** an alias for [`body()`][body]. They write to different keys in the
  webhook specification: `body` sets the request body, while `params` sets
  query/form parameters.
</Warning>

## **Parameters**

<ParamField path="data" type="dict[str, Any]" required={true} toc={true}>
  Request parameters. Supports `${variable}` substitutions.
</ParamField>

## **Returns**

[`DataMap`][ref-datamap] -- Self for method chaining. Raises `ValueError` if no webhook has been
added yet.

## **Example**

```python {7}
from signalwire import DataMap, FunctionResult

dm = DataMap("search_docs")
dm.purpose("Search documentation")
dm.parameter("query", "string", "Search query", required=True)
dm.webhook("GET", "https://api.docs.example.com/search")
dm.params({"q": "${args.query}", "limit": 10})
dm.output(FunctionResult("Found: ${response.results[0].title}"))
```