Conversation to Code

Chat with Freddy AI conversational assistant to generate code, fix errors, and get answers to your Freshworks app development questions. The AI understands the Freshworks Developer Platform, its capabilities, best practices, and provides contextual assistance for building high-quality applications efficiently.

In this guide, you will learn the following:

  • How Conversation to Code works
  • How to use it
  • Supported use-cases

How Conversation to Code works

Freddy AI Copilot has stored the Freshworks platform context, its capabilities, best practices and has implemented a pipeline that allows it to generate code and respond to development queries grounded in platform context.

Freddy AI processes your query by:

  • Understanding intent and attached code context
  • Retrieving relevant Freshworks platform knowledge as per the query
  • Generating code and response grounded in Freshworks platform knowledge

How to use

Follow these steps to use Conversation to Code effectively:

  1. Create a prompt describing your question
  2. Include relevant code & error messages in the prompt for context
  3. Review the response. If not satisfactory, refine the prompt and ask again
  4. Apply the code by copying, inserting or saving code to a new file
  5. Provide feedback (thumbs up/down or report issue) to help improve the copilot
Info

Tips for better responses:

  • Include error messages and relevant code snippets as context in the prompt
  • Be specific about what you're trying to accomplish
  • For complex issues, break them down into smaller, focused questions

Supported use-cases

Fix Errors

Get help in fixing validation & runtime errors during Freshworks app development. Freddy AI analyzes error messages, suggests solutions, and explains the fixes.

Sample prompts:
- "Provide root cause & fix error : 'Code must be a string' error, how to fix it'?"
- "Explain this error and how to fix it : 'server/server.js::925: post is no longer supported in Request API'"

Generate Code for platform capabilities

Generate code for platform-specific capabilities and get ready-to-use code snippets that follow platform best practices for FDK features and frontend components using CRAYONs (Freshworks frontend component library).

Sample prompts:
- "Show me how to use client.request.invoke"
- "Provide code on how to configure oauth in my app?"

Get answers to platform-specific development queries

Get instant answers to questions about platform features, implementation details, and app development best practices.

Sample prompts:
- "What are the limitations of data storage in FDK?"
- "How to style crayons components?"
- "What's the difference between fw-modal and showModal?"

Need some help?

Need assistance? Ask questions in our Developer Community.