---
title: Automating Your Call Recorder Export
description: Once your Call Recorder has established a secondary archive, Corti can help to automate data transfer for you
---

[Skip to content](https://help-legacy.corti.ai/migration/automating-your-call-recorder-export#main-content)

English

Show submenu for translations

![Orb\_logotype\_horizontal\_white.png\]](https://help-legacy.corti.ai/hs-fs/hubfs/Orb_logotype_horizontal_white.png?height=40&name=Orb_logotype_horizontal_white.png)

- [Default HubSpot Blog](https://3997889.hs-sites.com/blog)

Open main navigation

Close main navigation

- [Default HubSpot Blog](https://3997889.hs-sites.com/blog)
- English
  
  Show submenu for translations
- [Go to corti.ai](https://corti.ai/)

[Go to corti.ai](https://corti.ai/)

 Welcome to Corti's Help Center

- There are no suggestions because the search field is empty.

1. [Help Center](https://help-legacy.corti.ai/migration?hsLang=en)
2. [New to Corti?](https://help-legacy.corti.ai/migration/new-to-corti?hsLang=en)
3. [Implementing Clear/Voyager AI - Call Recorder Integration](https://help-legacy.corti.ai/migration/new-to-corti?hsLang=en#implementing-clear-voyager-ai-call-recorder-integration)

# Automating Your Call Recorder Export

## Once your Call Recorder has established a secondary archive, Corti can help to automate data transfer for you

Once we have confirmed that the necessary pieces of data are being received from your CAD and/or Call recorder - the next step is to automate the export. We have an example script below, but if you have questions or issues, please reach out to your CSM.

The below anonymized example script will:

1. Create the connection to the SFTP drive
2. Create a dated file in the SFTP drive
3. Copy the files from a source folder to the dated file
4. Delete the files from the source folder

 

*Important Notes:*

- *You will need to add the Corti-provided appropriate identifying information for the SFTP drive (e.g. HostName, private key, etc.)*
- *Corti will also be able to provide the dll file used by the below script. Corti can drop this file on your customer specific SFTP server. Please let your CSM know if this is of interest.*
- *Ensure that the correct source folder is being used, remembering that as written the files will be deleted after the script is run*
- *Use Windows Task Scheduler to schedule the task*

 

```
try{Add-Type -Path "WinSCPnet.dll"$session = New-Object WinSCP.Session$sessionOptions = New-Object WinSCP.SessionOptions$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp$sessionOptions.HostName = "api.[customername].motocorti.io"$sessionOptions.PortNumber = 2222$sessionOptions.UserName = "corti"$sessionOptions.Password = ""$sessionOptions.SshPrivateKeyPath = ""$sessionOptions.SshHostKeyFingerprint = ""$today = Get-Date -Format "yyyy-MM-dd"#$sourceFolder = "F:\NICE\NICE Inform Recorder\Content\audio1\{0}" -f $today$sourceFolder = "c:\export\" -f $today$destinationFolder = "input/{0}" -f $today    try    {        # Connect        $session.Open($sessionOptions)# Create remote directory$session.CreateDirectory($destinationFolder)}catch{write-host "Directory Exists" }try{        # Upload files        $transferOptions = New-Object WinSCP.TransferOptions        $transferOptions.TransferMode = [WinSCP.TransferMode]::Binary        $transferResult =            $session.PutFilesToDirectory($sourceFolder, $destinationFolder, "*", $False, $transferOptions)        # Throw on any error        $transferResult.Check()        # Print results        foreach ($transfer in $transferResult.Transfers)        {            Write-Host "Upload of $($transfer.FileName) succeeded"            Remove-Item -Path $transfer.FileName -Force        }    }    finally    {        # Disconnect, clean up        $session.Dispose()    }    exit 0}catch{    Write-Host "Error: $($_.Exception.Message)"    exit 1}
```

 

- [New to Corti?](https://help-legacy.corti.ai/migration/new-to-corti?hsLang=en#main-content)

    - [Technical Set-Up](https://help-legacy.corti.ai/migration/new-to-corti?hsLang=en#technical-set-up)
    - [Implementing Clear/Voyager AI - Call Recorder Integration](https://help-legacy.corti.ai/migration/new-to-corti?hsLang=en#implementing-clear-voyager-ai-call-recorder-integration)
    - [Implementing Clear/Voyager AI - CAD Integration](https://help-legacy.corti.ai/migration/new-to-corti?hsLang=en#implementing-clear-voyager-ai-cad-integration)
- [How To's](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#main-content)

    - [Clear/Voyager AI Videos](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#clear-voyager-ai-videos)
    - [Clear/Voyager AI - Explore - Articles](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#clear-voyager-ai-explore-articles)
    - [Clear/Voyager AI - Call Review - Articles](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#clear-voyager-ai-call-review-articles)
    - [Clear/Voyager AI - Call Search - Articles](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#clear-voyager-ai-call-search-articles)
    - [Engage - Protocol Editor Videos](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#engage-protocol-editor-videos)
    - [Engage - Protocol Editor Articles](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#engage-protocol-editor-articles)
    - [Admin - Articles](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#admin-articles)
    - [Clear/Reviews](https://help-legacy.corti.ai/migration/how-tos?hsLang=en#clear-reviews)
- [User Guide](https://help-legacy.corti.ai/migration/user-guide?hsLang=en#main-content)

    - [Engage](https://help-legacy.corti.ai/migration/user-guide?hsLang=en#engage)
    - [Clear](https://help-legacy.corti.ai/migration/user-guide?hsLang=en#clear)
    - [General Platform](https://help-legacy.corti.ai/migration/user-guide?hsLang=en#general-platform)
    - [Deep Dive Repository](https://help-legacy.corti.ai/migration/user-guide?hsLang=en#deep-dive-repository)
- [What's new?](https://help-legacy.corti.ai/migration/whats-new?hsLang=en#main-content)

    - [Release Notes 2024](https://help-legacy.corti.ai/migration/whats-new?hsLang=en#release-notes-2024)
    - [Release notes 2023](https://help-legacy.corti.ai/migration/whats-new?hsLang=en#release-notes-2023)
- [Corti Co-Pilot](https://help-legacy.corti.ai/migration/corti-co-pilot?hsLang=en)

- [Default HubSpot Blog](https://3997889.hs-sites.com/blog)

[![](https://help-legacy.corti.ai/hs-fs/hubfs/Corti%20Logo-1.png?width=617&height=200&name=Corti%20Logo-1.png)](https://help-legacy.corti.ai/?hsLang=en)

Can't find what you need? Reach out through https://corti.zendesk.com/hc/en-us

Copyright © 2026, Corti