You can send a document to e-signing via Taktikal in Journeys.
You first need to find your API keys on their portal, it is here:
Now, in Journeys under integrations you can create a new integration, name it "Taktikal" and add a logo.
Authentication:
Insert authentication like this:
Where
Username is the Company Key
Password is the API Key
Send document to signing
Now let's create an endpoint which we can call "Send document to signing"
It should have the URL: https://onboarding.taktikal.is/api/management/signing
And the JSON should be like this:
{
"pdfDocument": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+PgplbmRvYmoKMiAwIG9iago8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDE+PgplbmRvYmoKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDIgMCBSL1Jlc291cmNlczw8L1Byb2NTZXQgWy9QREYgL1RleHRdL0ZvbnQgPDwvRjEgNCAwIFI+Pj4+L0NvbnRlbnRzIDUgMCBSPj4KZW5kb2JqCjQgMCBvYmoKPDwvVHlwZS9Gb250L1N1YnR5cGUvVHlwZTEvQmFzZUZvbnQvVGltZXMtUm9tYW4+PgplbmRvYmoKNSAwIG9iago8PC9MZW5ndGggNDg+PgpzdHJlYW0KQlQKL0YxIDE4IFRmCjAgVCAoSGVsbG8sIFdvcmxkISkgVGoKRVQKZW5kc3RyZWFtCmVuZG9iagp4cmVmCjAgNgoxMDAwMDAwMDAxIDY1NTM1IGYgCjAwMDAwMDAwMDAgMDAwMDAgbiAKMDAwMDAwMDAxMCAwMDAwMCBuIAowMDAwMDAwMDc5IDAwMDAwIG4gCjAwMDAwMDAxNTcgMDAwMDAgbiAKMDAwMDAwMDMzNSAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDYKL0luZm8gMSAwIFIKL1Jvb3QgMSAwIFIKPj4Kc3RhcnR4cmVmCjQwNQolJUVPRgo=",
"pdfFileName": "example.pdf",
"flowKey": "yourflowkey",
"user": "useremail@demo.com",
"SignInOrder": false,
"RequiresAuth": false,
"SignatureLocation": "TopFirstPage",
"flattenDocument": false,
"reminderRule": "1:3",
"createSignees": [
{
"name": "James Smith",
"ssn": "1234561239",
"email": "james@demo.com",
"phoneNumber": "+3546661234",
"communicationDeliveryType": "email",
"SignatureType": "Qualified",
"Reason": "Undirritun",
"Language": "En"
}
]
}
But you need to replace:
yourflowkey --> you should get this from Taktikal
useremail@demo.com --> this should be an email of one of the users you have in Taktikal, the one who is "sending the document for signing" - they need to have a user on app.taktikal.is and then they can see the signature in their portal. The email template is also used from this user. This can also be empty if you don't want to use a specific Taktikal user.
James Smith --> Your name (or someone you want to test the signing with)
1234561239 --> Your SSN
james@demo.com --> Your email
+3546661234 --> Your phone number
Then press "save" and then "test" in (you can see them on the image here above)
You should then get a success response like this:
If this is successful you just need to change the type of pdfDocument to file and save:
Now, you can use this as an action as seen on the screenshots below.
You get the file from another action, it can be a file you get in a sent form, it can also be a document that has been converted to a PDF file, see the screenshot here below.
The name of the PDF file can contain the name of the traveller but has to end with a .pdf, like in the screenshot below.
Here that you can add more signers, for example if this document should be signed by multiple parties (both the new hire and the supervisor for example).
Continue the journey only when the document has been signed
Now you want to continue the Journey only after the document has been signed. Then we use an action that we call "Loop" - which checks regularly if the document has been signed.
Let's first add to integrations a new endpoint called "Get status":
The URL should be:
https://onboarding.taktikal.is/api/signing/{{docid}}/signee/{{signerid}}?format=json
It should be a "GET" request and the example request should be empty, like this:
This request needs both the document ID and the signer ID.
The document ID is in the response we get when we create the document, but to get the signer ID we need to add a formatter action like this:
And now add a loop and our new "Get status" function.
For the Docid we use the key from the document, here:
And for the Signerid we use the key from the formatter - like this:
Now we just add the last action which is to exit the loop when the "Status" is "Completed" - like this:
Now you can add any other actions after the loop and they will only happen once everyone has signed the document.
Note that the loop runs every 10 minutes (or with longer intervals, you can change it) - to check whether the document is signed - so when you are testing this you might need to wait a few minutes to see the next steps trigger after the document has been signed.
Best of luck building your Taktikal integration ! ✍️ 🚀