Skip to content

Instantly share code, notes, and snippets.

View jalcantarab's full-sized avatar
🏗️
Building

Jorge Alcantara Barroso jalcantarab

🏗️
Building
View GitHub Profile
@jalcantarab
jalcantarab / chatgpt_canvas_canmore.md
Created October 4, 2024 07:26
ChatGPT Canvas Internal System Prompt Instructions

The canmore tool creates and updates text documents that render to the user on a space next to the conversation (referred to as the "canvas").

Lean towards NOT using canmore if the content can be effectively presented in the conversation. Creating content with canmore can be unsettling for users as it changes the UI.

How to use canmore:

  • To create a new document, use the create_textdoc function. Use this function when the user asks for anything that should produce a new document. Also use this when deriving a new document from an existing one.
  • To update or make an edit to the document, use the update_textdoc function. You should primarily use the update_textdoc function with the pattern "." to rewrite the entire document. For documents of type "code/", i.e. code documents, ALWAYS rewrite the document using ".*". For documents of type "document", default to rewriting the entire document unless the user has a request that changes only an isolated, specific, and small section that does

Join me on Medium to catch my latest take on new ways to use AI.

Transforming Vision into Value
Connect with me directly via Email, find me on LinkedIn, or contact us at integrait if you're looking for help from AI industry veterans.

We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
"Company","Focus","Tech","# Clients","~ Rating","Main Feature","Integrations","Industry focus","Deployment options","Price Range","Pricing Structure"
"Neuraflash","Sales, Customer service","Salesforce Einstein","100","4.2","Multi-channel integration","Salesforce, ServiceNow, HubSpot","Finance, Healthcare, Retail","Cloud","Custom","Custom"
"Botpress","Customer service","Flows","100","4.1","Open-source and customizable","Slack, Facebook Messenger, WhatsApp","All","On-premise, Cloud","$0-$10,000/year","Subscription-based"
"Drift","Lead generation","RPA & Simple matching","2000","4.3","Conversational marketing","Salesforce, Marketo, HubSpot","B2B","Cloud","$400/month+","Subscription-based"
"Ada","Customer service","Complex matching","1000","4.5","Multi-lingual support","Salesforce, Zendesk, Shopify","Finance, Healthcare, Retail","Cloud","Custom","Custom"
"Pypestream","Customer service","Complex Mathing, Flows","250","4.4","Advanced automation","Salesforce, Microsoft Dynamics, Genesys","Healthcare, Insurance, Util
@jalcantarab
jalcantarab / content-json-sample.json
Last active November 21, 2017 04:49
Sample JSON showing the structure of the feed for a project with fields (Title, URL, Answer, Paragraphs[]). Paragraphs being a multifield (array)
{
"contents": [
{
"TITLE": "Content 1 Title",
"CATEGORY": ["category",
"subcategory"
],
"PROFILES": {
"1": "F2B_DEFAULT",
"2": "F2B_INACTIVE",
@jalcantarab
jalcantarab / _jsonPuller.md
Last active August 10, 2024 20:34 — forked from crstamps2/jsonPuller
A Google apps script to pull json from a spreadsheet

JSON Puller - Google Apps Script

Transforms the data of a given Spreadsheet Sheet to JSON.

  • The frozen rows are taken as keys for the JSON.
  • The data taken for the values is only that after the frozen rows

Set up:

exportJSON(Spreadsheet) - transforms the data in the given sheet to JSON.

@jalcantarab
jalcantarab / _InbentaApiMethods.md
Last active May 8, 2023 13:33
Google App Script Examples of some of the Inbenta API endpoints

Inbenta API - Google Apps Script Examples (~JavaScript)

Check out the official documentation of the Inbenta API at Getting Started. This gist is done for API version v1. To check out SDK examples in JavaScript, check this out

Overview

All the API access is over HTTPS. The response format for all requests is a JSON object. Whether a request succeeded is indicated by the HTTP status code. A 2xx status code indicates success, otherwise failure. When a request fails, the response body is still JSON.

Authentication

Authentication is done via HTTP headers, more information in the Authorization section. The calls in this gist all authenticate doing a call to getApiData(), which retrieves a token from POST /auth, and the list of api endpoints from GET /apis.

@jalcantarab
jalcantarab / ShopifyScripts.md
Last active June 15, 2022 19:36
Simple Shopify API calls examples

Shopify API - Script examples

Simple examples of calls to the Shopify API using Google Apps Script (.gs). So far:

  • ssCatalogPublicationStatus.gs - Meant as an addon for Google Sheets to check the publication status of items.
    • getCatalogJSON() - Returns complete JSON catalog for an instance.
    • checkPublicationStatus() - Checks a list of handle-ids in Google Sheets against a JSON catalog Compares the first column of a google spreadsheet to the JSON Shopify catalog. Adds published date to third column, and verifies date to published status.
@jalcantarab
jalcantarab / _InbentaChatbotSDKSample.md
Last active May 8, 2023 13:33
Example of Custom Integration of the Inbenta Chatbot SDK

Chatbot SDK Example - Custom Build

Simple example of a functioning chatbot SDK User Interface. All contained in one HTML file. This example is meant to show how to:

  • Customize configuration of the SDK build,
  • Customize the labels to align with your desired language and personality,
  • Customize some CSS to fit your colors and icons,
  • How to use the /auth API method to retrieve the API Token.

If you're looking for a more complex integration, or want to see the JS<>CSS<>HTML separate: GO HERE