Unico Connect

@unicoconnect

Your #1 full-cycle development company for no-code and code solutions. Elevate your business with custom software development services.

Actions (4)
Function Documentation: Brevo → Send Single Email Brevo API documentation Overview This function sends a single email using the Brevo (Sendinblue) API with HTML content. It requires inputs such as the API key, sender and receiver details, email content, and subject. The function validates and processes the input before making a request to the Brevo API. Inputs brevoapikey (registry/text) Required Description: API key for authenticating with Brevo API. Example: xkeysib-... from (object) Required Description: The sender's email address. Example: sender@example.com to (object) Required Description: The recipient's email address. Example: receiver@example.com message_html (text) Required Description: The HTML content to be sent. Example: <html><body><h1>Hello</h1></body></html> subject (text) Required Description: The subject of the email. Example: Welcome to our service! Function Stack Try / Catch Block Precondition: Check Valid HTML Content Description: Ensures the HTML content for the email is valid before proceeding. API Request to Sendinblue API Request to https://api.brevo.com/v3/smtp/email Purpose: Sends the email using the Brevo (Sendinblue) API. Return Value: The API response is stored as api_response. Create Variable: response Variable: var: response = var: api_response.response.result Purpose: Stores the API response for the SMS send operation. 2 Error Handling (Catch) Create Variable: response Purpose: If the API call fails or returns an error, this block catches the error and provides an error message. Response The function returns the result of the email send operation, including status and any relevant messages. Success Response `json { "messageId": "<202410100.1236169*@smtp-relay.mailin.fr>", } ` Error response `json { "message": "Key not found", "code": "unauthorized" } ` Example Input `json { "from":{ "from_name":"John", "from_email":"sohansakhare**@gmail.com" }, "to":{ "to_name":"David", "to_email":"sajankumar.*@unicoco*.com" }, "email_html":"<html><head></head><body><p>Hello world</p></body></html>", "subject":"abc" } ` Output `json { "messageId": "<202410100.1236169*@smtp-relay.mailin.fr>" } `
Updated 2 days ago
Function Documentation: Claude AI -> Ask a Question Claude AI API documentation Overview This function sends a message request to the Claude AI API using the provided API key, prompt, and token limit. The function captures the response from the Claude API and returns it. Inputs claudeapikey (registry/text) Required Description: The API key used to authenticate requests to the Claude AI API. Example: claudeapiabc123 prompt (text) Required Description: The prompt or message that you want to send to Claude AI as role user. Example: What is the capital of France? max_token (integer) Required Description: The maximum number of tokens to be used for generating the response, Default - 1024. Example: 1024 assistant_prompt (text) Optional Description: The prompt or message that you want to send to Claude AI as role assistant. Default - As an enthusiastic assistant, provide clear and understandable responses. Example: `As an enthusiastic assistant, provide clear and understandable responses Function Stack Try / Catch Block Group: Claude API Request API Request to https://api.anthropic.com/v1/messages Purpose: Sends the prompt to the Claude AI API with the API key, prompt, assistant prompt, and token limit. Return Value: The API response is stored as api_response. Example: ` json { "model": "claude", "message": [ { "role": "user", "content": "prompt" }, { "role": "assistant", "content": "assistant_prompt" } ] } ` Create Variable: response Variable: var: response = var: api_response.response Purpose: Stores the API response, including the message generated by Claude AI. 2 Error Handling (Catch) Create Variable: response Purpose: If the API call fails or returns an error, this block catches the error and provides an error message. Response The function returns the result of the Claude AI message generation, including the generated text. Success Response `json { "id": "msg_01H4x**", "type": "message", "role": "{role}", "content": [ { "type": "text", "text": "Neural networks are a type of machine learning algorithm ..." } ], "model": "claude-3-opus-20240229", "stopreason": "endturn", "stop_sequence": null, "usage": { "input_tokens": 23, "output_tokens": 219 } } ` Error Response `json { "type": "error", "error": { "error": "authentication_error", "message": "invalid x api key." } } ` Example Input `json { "prompt": "{prompt}", "maxtokens": "{maxtoken}", "assistantprompt": "{assistantprompt}" } ` Output `json { "id": "msg_01H4x**", "type": "message", "role": "{role}", "content": [ { "type": "text", "text": "Neural networks are a type of machine learning algorithm ..." } ], "model": "claude-3-opus-20240229", "stopreason": "endturn", "stop_sequence": null, "usage": { "input_tokens": 23, "output_tokens": 219 } } `
Updated 2 days ago
Function Documentation: Convert Api -> File Convert Convert API documentation Overview This function stack handles file conversion using ConvertAPI. The function allows users to input a file URL, specify the fromformat, toformat, and file_url and returns the converted file's URL. Inputs convertapikey (registry/text) Required Description: The API key used for authenticating the Convert API. Example: xkeysib-... from_format (enum) Required Check Valid Format: Description: The format to convert from (e.g., png, jpg, pdf, doc, xls, csv). Example: pdf to_format (enum) Required Description: The format to convert to (e.g., png, jpg, pdf, doc, xls, csv). Example: jpg file_url (text) Required Description: The URL of the file to be converted. Example: https://example.com/sample.jpg Function Stack Try / Catch Block Precondition: Checks File Format Description: It checks from format should be same as to format. API Request to https://v2.convertapi.com/convert/{fromformat}/to/{toformat} Purpose: Converts the file from the fromformat to the toformat using the file URL. Return Value: The API response is stored as api_response. Create Variable: response Variable: var: response = var: api_response.response.result Purpose: Stores the API response for the convert api . 2 Error Handling (Catch) Create Variable: response Purpose: If the API call fails or returns an error, this block catches the error and provides an error message. Response The function returns the URL of the converted file from ConvertAPI, including success or error messages. Success Response `json { "ConversionCost": 1, "Files": [ { "FileName": "0266554465.pdf", "FileExt": "pdf", "FileSize": 63923, "FileId": "wtj3krv14y87qzcoptgr9ytoj4a8evqx", "Url": "https://v2.convertapi.com/d/wtj3krv14y87qzcoptgr9ytoj4a8evqx/0266554465.pdf" } ] } ` Error Response `json { "code": "invalid_parameter", "message": "Unable to convert file. The provided file format is not supported." } ` Example Input `json { "from_format": "pdf", "to_format": "jpg", "file_url": "https://example.com/sample.pdf" } ` Output `json { "ConversionCost": 1, "Files": [ { "FileName": "0266554465.pdf", "FileExt": "pdf", "FileSize": 63923, "FileId": "wtj3krv14y87qzcoptgr9ytoj4a8evqx", "Url": "https://v2.convertapi.com/d/wtj3krv14y87qzcoptgr9ytoj4a8evqx/0266554465.pdf" } ] } `
Updated 36 min ago
Function Documentation: QuickBooks -> Create Payment Quickbooks API documentation Overview This function creates a payment in QuickBooks by making an API call. It uses the QuickBooks API with the provided realm ID, amount, and consumer reference. This action works on production environment only, for sandbox environment refer documentation at https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/payment#create-a-payment. Inputs quickbooksrealmid (registry/text) Required Description: The QuickBooks realm ID associated with the account. Example: quickbooksrealmabc123 amount (decimal) Required Description: The amount of the payment to be created. Example: 100.50 consumer_ref (integer) Required Description: A reference number associated with the consumer. Example: 12345 quickbooksapitoken (registry|text) Required Description: The JWT token used to authenticate requests to the quickbooks API. Example: xkeysib-... Function Stack Try / Catch Block QuickBooks API Call API Request to https://quickbooks.api.intuit.com/v3/company/{quickbooksrealmid}/payment Purpose: Sends a payment creation request to QuickBooks using the realm ID, amount, and consumer reference. Return Value: The API response is stored as response. Response Variable Variable: var: response = var: quickbooksapiresponse.response Purpose: Captures the response returned by the QuickBooks API. Error Handling (Catch) Create Variable: response Purpose: Catches and handles any errors that occur during the QuickBooks API call and logs the error message. Response The function returns the result of the QuickBooks payment creation. Success Response `json { "Payment": { "CustomerRef": { "value": "20", "name": "Red Rock Diner" }, "DepositToAccountRef": { "value": "4" }, "TotalAmt": 25, "UnappliedAmt": 25, "ProcessPayment": false, "domain": "QBO", "sparse": false, "Id": "150", "SyncToken": "0", "MetaData": { "CreateTime": "2024-10-11T07:17:33-07:00", "LastUpdatedTime": "2024-10-11T07:17:33-07:00" }, "TxnDate": "2024-10-11", "CurrencyRef": { "value": "USD", "name": "United States Dollar" } }, "time": "2024-10-11T07:17:32.610-07:00" } ` Error Response `json { "type": "error", "error": { "code": "paymentcreationfailed", "message": "Failed to create the payment due to an invalid realm ID." } } ` Example Input `json { "quickbooksrealmid": "{quickbooksrealmid}", "amount": "{amount}", "consumerref": "{consumerref}" } ` Output `json { "Payment": { "CustomerRef": { "value": "20", "name": "Red Rock Diner" }, "DepositToAccountRef": { "value": "4" }, "TotalAmt": 25, "UnappliedAmt": 25, "ProcessPayment": false, "domain": "QBO", "sparse": false, "Id": "150", "SyncToken": "0", "MetaData": { "CreateTime": "2024-10-11T07:17:33-07:00", "LastUpdatedTime": "2024-10-11T07:17:33-07:00" }, "TxnDate": "2024-10-11", "CurrencyRef": { "value": "USD", "name": "United States Dollar" } }, "time": "2024-10-11T07:17:32.610-07:00" } `
Updated 2 days ago