> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ai-suite/smart-columns/smart-works/custom-prompt.md).

# Custom Prompt

The custom prompt smart work allows you to set any kind of prompt supported by your AI provider. Using the pipe icon![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FsfUjy8NQ9EdtQcZCUwZt%2Fimage.png?alt=media\&token=0d63a022-6980-4938-9a83-3932fb3bbc2a)you can pipe into your prompt any of your respondent answers. ngSurvey will then replace the pipe dynamically for each respondent while sending the prompt to your AI provider for evaluation. The output of the prompt will be stored as the smart column value.

{% hint style="info" %}
We recommend to use your pipe value between triple back ticks in your prompt to let your AI provider distinguish it from your prompt request.  &#x20;
{% endhint %}

Here a prompt that will calculate the total between 2 entries and store it within the smart column.

<figure><img src="https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2F7QmXpTxsPXADpM9qV6Ef%2Fimage.png?alt=media&amp;token=1470b424-f444-43f3-b5ae-21adf14b4b18" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/ai-suite/smart-columns/smart-works/custom-prompt.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
