The Chatsonic API by Writesonic unleashes the power of conversational AI, enabling you to craft chatbots, automate customer service, and generate natural language responses for a variety of use cases. With Chatsonic, you can design workflows on Pipedream that respond to events, messages, or prompts with human-like text, leverage contextually aware conversations, and even tap into real-time data like weather or news for enriched interactions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatsonic: {
type: "app",
app: "chatsonic",
}
},
async run({steps, $}) {
const data = {
"enable_google_results": `true`,
"enable_memory": `false`,
"input_text": `Check out pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://api.writesonic.com/v2/business/content/chatsonic?engine=premium`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
"X-API-KEY": `${this.chatsonic.$auth.api_key}`,
},
data,
})
},
})
Automate Customer Support: Connect Chatsonic to a customer support ticketing system like Zendesk. When a new ticket is created, trigger a workflow that uses Chatsonic to generate an initial response, aiming to resolve common queries without human intervention.
Content Generation for Social Media: Pair Chatsonic with Twitter's API. Automate content creation by triggering a workflow whenever you need to post a new tweet. Chatsonic can generate creative and context-relevant posts, which Pipedream can then automatically publish to your Twitter account.
Event-Driven Email Responses: Integrate Chatsonic with an email service like SendGrid. Set up a Pipedream workflow that listens for incoming emails and uses Chatsonic to draft replies based on the email content. This can provide quick, personalized responses to common inquiries, feedback, or even out-of-office messages.
Chatsonic uses API keys for authentication. When you connect your Chatsonic account, Pipedream securely stores the keys so you can easily authenticate to Chatsonic APIs in both code and no-code steps.
To retrieve your API Key,