> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/appian/smart-services/wv-smart-services.md).

# Apryse WebViewer Smart Services

Learn how to use the Apryse SDK to interact with the WebViewer component in Appian. Convert Base64 strings to documents or document versions effortlessly with WebViewer Smart Services. Appian WebViewe

## Overview

The Apryse SDK provides a set of smart services that can be used to interact with the WebViewer component in Appian. These smart services allow you to perform various operations such as converting a Base64 string to a document or document version. They aim to help assist you in the interaction between your documents in Appian and WebViewer.

## Available WebViewer Smart Services

### Base64 to Document

This smart service converts a Base64 string to a document. This is useful when WebViewer provides the document data as a base64 string and you want to convert it to a document in Appian.

**Input Parameters**

| Parameter Name     | Type   | Required | Multiple | Description                                        |
| ------------------ | ------ | -------- | -------- | -------------------------------------------------- |
| `Base64 Data`      | Text   | Yes      | No       | The base64 string to convert to a document.        |
| `Upload Folder ID` | Folder | Yes      | No       | The folder where the document will be uploaded to. |
| `Filename`         | Text   | Yes      | No       | The filename of the document.                      |
| `Extension`        | Text   | Yes      | No       | The extension of the document.                     |

**Output Parameters**

| Parameter Name       | Type     | Description                                 |
| -------------------- | -------- | ------------------------------------------- |
| `Error Message`      | Text     | The error message if the conversion failed. |
| `Has Error`          | Boolean  | Whether the conversion failed.              |
| `Output Document ID` | Document | The saved document.                         |

### Base64 to Document Version

This smart service converts a Base64 string to a document version. This is useful when WebViewer provides the document data as a base64 string and you want to convert it to a document version in Appian.

**Input Parameters**

| Parameter Name | Type     | Required | Multiple | Description                                         |
| -------------- | -------- | -------- | -------- | --------------------------------------------------- |
| `Base64 Data`  | Text     | Yes      | No       | The base64 string to convert to a document version. |
| `Document ID`  | Document | Yes      | No       | The document to add the version to.                 |

**Output Parameters**

| Parameter Name       | Type     | Description                                 |
| -------------------- | -------- | ------------------------------------------- |
| `Error Message`      | Text     | The error message if the conversion failed. |
| `Has Error`          | Boolean  | Whether the conversion failed.              |
| `Output Document ID` | Document | The saved document version.                 |


---

# 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://docs.apryse.com/appian/smart-services/wv-smart-services.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.
