with Insighto.ai and Columns Ai?
Emit new event when a new contact is created in Insighto AI. See the documentation
Adds a text blob into an existing data source. See the documentation
Builds a graph object from scratch and publishes it. See the documentation
Creates a new contact within the system. See the documentation
Builds a graph object from a template and publishes it. See the documentation
Insighto.ai offers a powerful API for tapping into advanced analytics and AI capabilities. With Insighto.ai, you can enrich your business data with AI-driven insights, perform sentiment analysis, and automate responses based on customer interaction patterns. Leveraging this API on Pipedream allows you to integrate these capabilities seamlessly with other apps to create dynamic, data-driven workflows that can automate processes, enhance customer interactions, and drive decision-making with real-time analytics.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
insighto_ai: {
type: "app",
app: "insighto_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.insighto.ai/api/v1/user`,
headers: {
"accept": `application/json`,
},
params: {
api_key: `${this.insighto_ai.$auth.api_key}`,
},
})
},
})
import { ChartType } from 'columns-graph-model';
import { Columns } from 'columns-sdk';
export default defineComponent({
props: {
columns_ai: {
type: "app",
app: "columns_ai",
}
},
async run({steps, $}) {
const rows = [{
"value": 312,
"state": "WA",
"parent": "US"
}];// rows is an example data set where you should organize your data in a similar way.
//Instantiates a Columns SDK object with your API Key.
const columns = new Columns(this.columns_ai.$auth.api_key);
const data = columns.data(['state'], ['value'], rows);
const graph = columns.graph(data);
// switch to different chart types: BAR, PIE, DOUGHGUT, LINE, AREA, SCATTER, etc.
graph.type = ChartType.COLUMN;
// customise the graph (lots of options in its data model)
graph.settings.general.palette = ['#ff0000', '#00ff00', '#0000ff'];
graph.settings.general.background = '#00000002';
return graph;
},
})