# Functions Overview

Cognigy Functions are Code Blocks that can be run inside your Cogngiy.AI installation and help you with long-running asynchronous processes, e.g. interaction with third-party systems HTTP APIs. They are independent of Flows but can be triggered from a Flow and can also use the "inject" and "notify" APIs to send their results back into a Flow.

Please note that Cognigy does not provide enterprise support for developed Functions. This repository is [licensed under MIT,](https://github.com/Cognigy/Extensions/blob/master/LICENSE) in which the community is responsible for the shared code.

1. Download a Function of your choice from the library below  
2. Upload it to your virtual agent  
3. Done

## Library

| Icon | Name | Description | Source Code |  
| --- | --- | --- | --- |  
|  | [Salesforce Service Cloud](https://support.cognigy.com/hc/en-us/articles/360020749080-Salesforce-Service-Cloud-Integrate-Live-Chat-Handover) | This function is used within the Salesforce Service Cloud integration and should be used together with the related Salesforce Extension. | [See Code](https://github.com/Cognigy/Functions/blob/master/functions/salesforce-service-cloud/function.ts) |

### Functions

- [Handling a welcome message with Transformers and Endpoints](https://support.cognigy.com/hc/en-us/articles/4412112380690-Handling-a-welcome-message-with-Transformers-and-Endpoints)  
- [Functions – Refresh Access Token](https://support.cognigy.com/hc/en-us/articles/4403966790162-Functions-Refresh-Access-Token)  
- [Functions Overview](https://support.cognigy.com/hc/en-us/articles/4402093408786-Functions-Overview)

#### Table of contents

Library  
- [Library](https://support.cognigy.com/hc/en-us/articles/4402093408786-Functions-Overview#h_01KCHD2JPMHZ87EH5NKHMXTA4S)
