Claude AI
NicoChat ahora permite que tus usuarios se conecten de forma nativa a la plataforma Claude AI y usen los recursos de esa tecnología de IA de punta dentro de sus chatbots.
Obteniendo la Clave API de Claude
Para obtener la clave API, inicia sesión en https://console.anthropic.com.
Después de entrar, haz clic en Configuración en el menú superior.

Luego, haz clic en la pestaña de claves en el menú izquierdo y crea una clave API.

Integración con NicoChat
En el panel de tu workspace de NicoChat, haz clic en Integraciones y luego en Claude AI, en la pestaña Inteligencia Artificial.

Ingresa la clave API que obtuviste en tu cuenta de Claude y haz clic en Guardar. Deberías ver una marca de verificación que indica que la integración se completó.

Usando Claude en el Constructor de Flujos
Puedes usar Claude en el Constructor de Flujos por medio del nodo de acción. Crea un nodo de acción y selecciona la opción Integraciones. En el menú que aparece, haz clic en Claude.

Acciones de Claude AI
NicoChat se integra de forma nativa con los siguientes endpoints ofrecidos por Claude/Anthropic:

Crear Respuesta con IA (Chat Completion)

Esta acción se usa para generar chat/texto a partir del contexto y de la información proporcionada.
Payload
"id": "msg_01KCVbXDh7WREQYJrakkYBuS",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Here is a basic recipe and instructions for making homemade cupcakes: Ingredients: - 1 3/4 cups all-purpose flour - 1 1/2 teaspoons baking powder - 1/4 teaspoon salt - 1/2 cup unsalted butter, at room temperature - 1 cup granulated sugar - 2 large eggs, at room temperature - 1 teaspoon vanilla extract - 1/2 cup milk, at room temperature Instructions: 1. Preheat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners. 2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside. 3. In a large bowl, beat the butter and sugar together until light and flu"
}
],
"model": "claude-3-haiku-20240307",
"stop_reason": "max_tokens",
"stop_sequence": null,
"usage": {
"input_tokens": 20,
"output_tokens": 200
},
"messages": [
{
"role": "user",
"content": "How can I make cupcakes"
},
{
"role": "assistant",
"content": "Here is a basic recipe and instructions for making homemade cupcakes: Ingredients: - 1 3/4 cups all-purpose flour - 1 1/2 teaspoons baking powder - 1/4 teaspoon salt - 1/2 cup unsalted butter, at room temperature - 1 cup granulated sugar - 2 large eggs, at room temperature - 1 teaspoon vanilla extract - 1/2 cup milk, at room temperature Instructions: 1. Preheat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners. 2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside. 3. In a large bowl, beat the butter and sugar together until light and flu"
}
]
}
"id": "msg_01KCVbXDh7WREQYJrakkYBuS",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Here is a basic recipe and instructions for making homemade cupcakes: Ingredients: - 1 3/4 cups all-purpose flour - 1 1/2 teaspoons baking powder - 1/4 teaspoon salt - 1/2 cup unsalted butter, at room temperature - 1 cup granulated sugar - 2 large eggs, at room temperature - 1 teaspoon vanilla extract - 1/2 cup milk, at room temperature Instructions: 1. Preheat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners. 2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside. 3. In a large bowl, beat the butter and sugar together until light and flu"
}
],
"model": "claude-3-haiku-20240307",
"stop_reason": "max_tokens",
"stop_sequence": null,
"usage": {
"input_tokens": 20,
"output_tokens": 200
},
"messages": [
{
"role": "user",
"content": "How can I make cupcakes"
},
{
"role": "assistant",
"content": "Here is a basic recipe and instructions for making homemade cupcakes: Ingredients: - 1 3/4 cups all-purpose flour - 1 1/2 teaspoons baking powder - 1/4 teaspoon salt - 1/2 cup unsalted butter, at room temperature - 1 cup granulated sugar - 2 large eggs, at room temperature - 1 teaspoon vanilla extract - 1/2 cup milk, at room temperature Instructions: 1. Preheat the oven to 350°F (177°C). Line a 12-cup muffin tin with paper liners. 2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside. 3. In a large bowl, beat the butter and sugar together until light and flu"
}
]
}
Nota: El Campo del Sistema “OpenAI” se usa para controlar el historial de chat de las acciones de Claude, así como de las acciones de OpenAI.
Borrar Memoria de IA (Chat Completion)

Esta acción se usa para limpiar el campo JSON del Sistema “OpenAI”. El objetivo es mantener el historial bajo control y monitorear el tiempo de ejecución de las solicitudes para evitar tiempos de espera del servidor y consumo excesivo de tokens.
Recuerda: más información para procesar = más consumo de tokens.
Visión - Imagen a Texto

Esta acción se usa para generar texto a partir de una imagen. El caso de uso es que el contacto envíe una imagen a Claude, que la analiza con base en el prompt y genera un resultado.
Payload
"id": "msg_01RFaDsXtJ9DCkMxkebTBBSs",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "The image shows a close-up view of a sunflower against a bright blue sky background. The sunflower has vibrant yellow petals radiating outwards from a large central disk floret. The disk floret appears greenish-yellow and has a subtle texture. The sunflower stem and leaves are visible at the bottom of the frame, adding some green contrast to the predominantly yellow flower. The petals look fresh and the flower seems to be in full bloom, capturing the iconic and cheerful appearance of a sunflower."
}
],
"model": "claude-3-opus-20240229",
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 159,
"output_tokens": 114
}
}
"id": "msg_01RFaDsXtJ9DCkMxkebTBBSs",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "The image shows a close-up view of a sunflower against a bright blue sky background. The sunflower has vibrant yellow petals radiating outwards from a large central disk floret. The disk floret appears greenish-yellow and has a subtle texture. The sunflower stem and leaves are visible at the bottom of the frame, adding some green contrast to the predominantly yellow flower. The petals look fresh and the flower seems to be in full bloom, capturing the iconic and cheerful appearance of a sunflower."
}
],
"model": "claude-3-opus-20240229",
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 159,
"output_tokens": 114
}
}