Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IArtificialIntelligenceService.cs

using Nop.Core;
using Nop.Core.Domain.ArtificialIntelligence;
using Nop.Core.Domain.Common;
using Nop.Core.Domain.Localization;

namespace Nop.Services.ArtificialIntelligence;

/// 
/// Artificial intelligence service interface
/// 
public partial interface IArtificialIntelligenceService
{
    /// 
    /// Create product description by artificial intelligence
    /// 
    /// Product name
    /// Features and keywords
    /// Tone of voice
    /// Special instruction
    /// Custom tone of voice (applicable only for ToneOfVoiceType.Custom)
    /// The language identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the generated product description
    /// 
    Task CreateProductDescriptionAsync(string productName, string keywords, ToneOfVoiceType toneOfVoice, string instruction, string customToneOfVoice = null, int languageId = 0);

    /// 
    /// Create meta tags by artificial intelligence
    /// 
    /// The entity to which need to generate meta tags
    /// The language identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the generated meta tags
    /// 
    Task<(string metaTitle, string metaKeywords, string metaDescription)> CreateMetaTagsForLocalizedEntityAsync(TEntity entity, int languageId)
        where TEntity : BaseEntity, IMetaTagsSupported, ILocalizedEntity;

    /// 
    /// Create meta tags by artificial intelligence
    /// 
    /// The entity to which need to generate meta tags
    /// The language identifier; leave 0 to use 
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the generated meta tags
    /// 
    Task<(string metaTitle, string metaKeywords, string metaDescription)> CreateMetaTagsAsync(TEntity entity, int languageId = 0)
        where TEntity : BaseEntity, IMetaTagsSupported;
}