This template extracts raw unstructured text and article data from Slack and Zendesk and stores it in a Pinecone vector database. Then, internal users can use Slack to send questions to integrator.io, which will:
- run a similarity search in Pinecone to find all relevant text/articles.
- send the text, articles, and questions to OpenAI's GPT-4 to get an AI-generated answer.
- post the answer back to Slack.
Contents
- Before you begin
- Supported integration flows
- Gather your credentials
- Install the template
- Configure the flows
Before you begin
Check out this deep dive video from Celigo’s CTO, Scott Henderson.
Further reading
This template uses various applications and tools. Learn more about those tools here:
Supported integration flows
The Celigo quickstart bundle contains workflows you can easily configure and deploy. The following built-in flows sync from the specified source data to the corresponding destination.
Flows |
Zendesk articles to Pincone knowledge base |
Slack conversations to Pinecone knowledge base |
Auto-respond to Slack posts with an AI-generated answer |
Gather your credentials
Get your Zendesk, Pinecone, Slack, OpenAI, and SerpAPI account credentials ready:
-
Zendesk – verify APIs and Authorization
- Before you set up a Zendesk connection below, ensure that you have the API and authentication details for your Zendesk app.
- Refer to the Zendesk help documentation to learn more about APIs and Authorization.
-
Pinecone – verify APIs and Authorization
- Before you set up a Pinecone connection below, ensure that you have the API and authentication details for your Pinecone app.
- Refer to the Pinecone help documentation to learn more about APIs and Authorization.
- Select Vector operations when creating a connection.
-
Slack – verify APIs and Authorization
- Before you set up a Slack connection below, ensure that you have the API and authentication details for your Slack app.
- Refer to the Slack help documentation to learn more about APIs and Authorization.
-
OpenAI – verify APIs and Authorization
- Before you set up an OpenAI connection below, ensure that you have the API and authentication details for your OpenAI app.
- Refer to the OpenAI help documentation to learn more about APIs and Authorization.
-
Serp API – verify APIs and Authorization
- Before you set up a SerpAPI connection below, ensure that you have the API and authentication details for your SerpAPI app.
- Refer to the SerpAPI help documentation to learn more about APIs and Authorization.
Install the template
- From the integrator.io Marketplace (NA | EU), search for OpenAI.
- Select the AI powered chatbot template (NA | EU) and click Install.
- Review the template’s contents and click Install now to begin.
- Add your credentials.
- Install the template.
Configure the flows
All of your flows are disabled when first installed. After configuring the flows, you may enable them in your Flows dashboard or Flow Builder with the Off/On toggle button. then run or schedule each flow.
Zendesk articles to Pinecone knowledge base
This integration flow adds articles from Zendesk to Pinecone.
- Set your export to Delta, which exports only data that has changed since the last time the flow ran.
- The getZendeskArticles script:
- Excludes various types of articles (drafts, segments, comments disabled)
- Breaks large articles into smaller pieces
- Strips HTML and turns it into plain text
- Manages the metadata you’re storing in Pinecone
- Minimize the number of times that ChatGPT manipulates your data so you get fewer hallucinations. In all cases, you should keep the raw data for as long as possible.
- Use namespaces in Pinecone to segregate and collate your data.
Important: The numTokens response mappings allow ChatGPT to measure the number of articles and their size. This helps it determine which and how many responses to choose once a question is asked.
Slack conversations to Pinecone knowledge base
This integration flow adds conversations from Slack to Pinecone.
- Set your export to Delta, which exports only data that has changed since the last time the flow ran.
- The getSlackConversations hook:
- Excludes various channels
- The serializeSlackThreads hook:
- Stringifies the thread, which can then be fed into Pinecone and ChatGPT
- Minimize the number of times that ChatGPT manipulates your data so you get fewer hallucinations. In all cases, you should keep the raw data for as long as possible.
- Use namespaces in Pinecone to segregate and collate your data.
Important: The numTokens response mappings allow ChatGPT to measure the number of slack threads and their size. This helps it determine which and how many responses to choose once a question is asked.
Auto-respond to Slack posts with an AI-generated answer
This is the largest flow in the template and includes many configurations. For example, you can customize the flow to only search inside an article the user provides or to run a similarity search. You can also determine how many articles are used to generate your answer, the quality of the articles, and how ChatGPT provides the data back to your customers.
Shrinking the articles allows you to minimize the amount of text displayed.
This flow uses our flow branching and Mapper 2.0 features, among others, to allow you to create as many scenarios as you want.
The most important tips to remember are:
- Keep OpenAI GPT’s best practices in mind.
- Provide straightforward rules for ChatGPT to follow.
- Utilize handlebars to make your content as dynamic as possible.
- Test everything in pieces. You can do this right in integrator.io by previewing export and import data.
- Future-proof your flows. Remember that you may only want to expose formal product documentation in the future instead of external and internal documentation. Use Integration Lifecycle Management (ILM) to keep backups, collaborate, and release different versions of the flows.
Comments
0 comments
Please sign in to leave a comment.